A robust backend server for the DecShop e-commerce platform built with Node.js, Express, and TypeScript.
- User authentication and authorization
- Seller management
- Product management
- Order processing
- Category organization
- Admin dashboard functionality
- File uploads
- Node.js & Express
- TypeScript
- MongoDB with Mongoose
- JWT for authentication
- Multer for file uploads
- Zod for validation
- Node.js (v14+)
- MongoDB
- Clone the repository
git clone https://github.com/sakayat/decshop-backend.git
cd decshop-backend
- Install dependencies
npm install
- Create a
.env
file in the root directory with the following variables:
PORT=9000
MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
- Run the development server
npm run dev
/api/users
- User authentication and management/api/seller
- Seller dashboard and operations/api/orders
- Order processing and management/api/admin
- Admin dashboard operations/api/category
- Category management/api/products
- Product CRUD operations