Back to Home
ArpitRanjan0101 icon

Backend

by ArpitRanjan0101

Overview

This repository serves as a learning playground for Node.js backend development, demonstrating fundamental concepts like HTTP server creation, Express.js routing, middleware, and MongoDB integration for CRUD operations.

Installation

Run Command
node day17/index.js

Environment Variables

  • MONGODB_URI
  • AUTH_SECRET_TOKEN

Security Notes

Critical security risks identified due to hardcoded MongoDB database credentials (username and password) in multiple `database.js` files (`day14`, `day16`, `day17`). Additionally, multiple hardcoded static authentication tokens are present in `day9/middleware/auth.js` and `day9/index.js`, providing no real security. The input validation logic in `day17/index.js` for mandatory fields is also flawed and could potentially expose sensitive error messages.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassLow
Avg Tokens200
Stars0
Forks0
Last Update2025-12-03

Tags

Node.jsExpress.jsMongoDBRESTful APIBackend Development