Node.js CI
This project is an API for managing products, reviews, and orders for an e-commerce application. It is built with Node.js, Express, and MongoDB.
- Features
- Installation
- Usage
- API Endpoints
- Contributing
- License
- User authentication and authorization
- Product management (CRUD operations)
- Review management (CRUD operations)
- Order management (CRUD operations)
- Email verification using Nodemailer with Gmail
- Clone the repository:
- MONGODB_URI=your_mongodb_uri
- JWT_SECRET=your_jwt_secret
- GMAIL_USER=your_gmail_user
- GMAIL_PASS=your_gmail_password
- Auth
- Register
- Registers a new user.
- Login
- Logs in a user.
- Products
- Get All Products
- Retrieves a list of all products.
- Create Product
- Creates a new product.
- Get Product by ID
- Retrieves a product by its ID.
- Update Product
- Updates a product by its ID.
- Delete Product
- Deletes a product by its ID.
- Reviews
- Get All Reviews
- Retrieves a list of all reviews.
- Create Review
- Creates a new review.
- Get Review by ID
- Retrieves a review by its ID.
- Update Review
- Updates a review by its ID.
- Delete Review
- Deletes a review by its ID.
- Orders
- Get All Orders
- Retrieves a list of all orders.
- Create Order
- Creates a new order.
- Get Order by ID
- Retrieves an order by its ID.
- Update Order
- Updates an order by its ID.
- Delete Order
- Deletes an order by its ID.
- Contributing
- Fork the repository.
- Create a new branch: git checkout -b my-feature-branch
- Make your changes and commit them: git commit -m 'Add some feature'
- Push to the branch: git push origin my-feature-branch
- Submit a pull request.