This is the backend component of an E-Commerce application. It provides RESTful APIs for managing products, users, and orders.
- Retrieve a list of products
- Add a new product
- Retrieve a list of users
- Add a new user
- Create an order
- Retrieve a list of orders
- Retrieve order details
- Node.js
- Express.js
- MySQL
- Sequelize (optional, if using an ORM)
- Other dependencies (listed in
package.json
)
- Node.js (version Latest)
- MySQL (version Latest)
-
Clone the repository:
git clone https://github.com/NdegwaJulius/ecommerce-backend.git cd ecommerce-backend npm install npm start
- Once the server is running, you can send HTTP requests to the provided API endpoints to manage products, users, and orders.
- Use tools like Postman or curl to interact with the APIs.
- GET /products: Retrieve all products
- POST /products: Add a new product
- GET /users: Retrieve all users
- POST /users: Add a new user
- POST /orders: Create a new order
- GET /orders: Retrieve all orders
- GET /orders/:id: Retrieve order details by ID For detailed API documentation, refer to the API documentation or Swagger documentation (if available).
Contributions are welcome! Please follow the Contributing Guidelines for more information.
This project is licensed under the MIT License - see the LICENSE file for details