A RESTful backend for an e-commerce application built with Node.js, Express, and MongoDB. It handles authentication, product management, cart operations, and order processing.
- User Authentication (Signup, Login, Logout)
- Product Management (Add, Delete, View, List)
- Cart Management (Add, Update Quantity, Remove, Get Cart)
- Order Management (Create Order, View Orders, Cancel Order, Admin Controls)
- Node.js
- Express.js
- MongoDB
- Mongoose
- JWT Authentication
Full API reference is available in:
-
Clone the repo
git clone https://github.com/your-username/ecommerce-backend.git cd ecommerce-backend -
Install dependencies
npm install
-
Run the server
npm run dev
Server will start at: 👉 http://localhost:5000 (by default)
Create a .env file and add:
PORT=2006
MONGO_URI=
CLOUD_NAME=
CLOUD_API_KEY=
CLOUD_API_SECRET=
JWT_SECRET=