| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A full-featured E‑Commerce REST API built using Node.js, Express, MongoDB, and Mongoose. This project demonstrates real‑world backend concepts such as authentication, authorization, transactions, aggregation pipelines, file uploads, logging, and API documentation with Swagger.
Live Application: https://e-com-api-r9km.onrender.com/
🔐 Authentication & Authorization
👤 User Management
📦 Product Management
🛍️ Cart Management
❤️ Like System
📑 Order Management
📄 API Documentation
🧾 Logging
e-com-api/ │ ├── src/ │ ├── config/ │ │ ├── mongodb.js │ │ └── mongooseConfig.js │ │ │ ├── features/ │ │ ├── user/ │ │ ├── product/ │ │ ├── cartItems/ │ │ ├── order/ │ │ └── like/ │ │ │ ├── middlewares/ │ │ ├── jwt.middleware.js │ │ ├── logger.middleware.js │ │ └── fileupload.middleware.js │ │ │ └── error-handler/ │ └── applicationError.js │ ├── uploads/ ├── swagger.json ├── server.js ├── .env └── README.md
Create a .env file in the root directory:
DB_URL=mongodb://localhost:27017/ecomdb JWT_SECRET=your_jwt_secret
git clone https://github.com/your-username/e-com-api.git cd e-com-api
npm install
npm start
Server will start at:
http://localhost:3200
Authorization: <JWT_TOKEN>
Swagger UI is available at:
http://localhost:3200/api-docs
Use the Authorize 🔐 button to add JWT token.
This project demonstrates:
Satyam Kumar Full Stack Software Engineer
If you like this project, don’t forget to star ⭐ the repository and share it!
Happy Coding 🚀
| Back | FazBrowse Home | New Git URL |