A production-ready RESTful API server for e-commerce applications built with Express.js, featuring JWT authentication, in-memory data storage, and comprehensive CRUD operations.
- Authentication: JWT-based authentication with bcrypt password hashing
- Products Management: Full CRUD operations with pagination and search
- Shopping Cart: Add, update, and remove items from cart
- Order Management: Create and track orders with status updates
- User Management: Registration, login, and profile management
- Input Validation: Comprehensive validation for all endpoints
- Error Handling: Global error handler with meaningful messages
- CORS Enabled: Ready for frontend integration
- Node.js (v14 or higher)
- npm or yarn
- Clone or create the project folder:
mkdir ecommerce-api-server
cd ecommerce-api-server