This is the backend for an e-commerce website built with Node.js and Express. It provides RESTful APIs for managing products, users, and orders.
- User authentication and management
- Product management (CRUD operations)
- Order processing
- Middleware for error handling and data validation
- Node.js
- Express
- MongoDB (or any other database of your choice)
- dotenv for environment variable management
- Node.js installed on your machine
- MongoDB (or any other database) set up
- Clone the repository:
git clone <repository-url> - Navigate to the project directory:
cd ecommerce-backend - Install the dependencies:
npm install
- Create a
.envfile in the root directory and add your environment variables:DATABASE_URL=<your-database-url> PORT=<your-port>
To start the server, run:
npm start
The server will be running on the specified port.
For detailed information on all available endpoints, models, and to test the API directly from your browser, please visit the live and interactive Swagger documentation:
Contributions are welcome! Please open an issue or submit a pull request for any improvements or features.
This project is licensed under the MIT License.