Welcome to the AttHire backend repository - your one-stop e-commerce destination for all things trendy and stylish. Built with Node.js, MongoDB, and Express, AttHire offers a seamless shopping experience with features like user registration, cart and payment functionality, and the ability to create and review products. With a user-friendly interface and powerful search and filter features, finding your next favorite item has never been easier.
The backend of AttHire contains the following features:
⦾ User registration, login, and password reset (an email is sent to the user).
⦾ Cart and payment functionality.
⦾ Ability to create products, product reviews, and product ratings.
⦾ Filter functionality, search feature, and pagination.
⦾ User with admin privilege can access the user's details except their password, which is protected by encryption.
⦾ Admin can check the total number of orders and individual user's orders.
⦾ Middleware created for handling errors such as async error, errors that occur when a user enters the wrong ID, unhandled promise rejection, unhandled caught exceptions, and errors that crash the server when a product is not found.
To run the backend code of AttHire, follow the steps below:
-
Clone the AttHire repository.
-
Install the required dependencies by running npm install.
-
Create a .env file in the root directory and add the necessary environment variables.
-
Start the server by running npm start.
-
You can now test the various functionalities of AttHire using a tool like Postman.
If you would like to contribute to the development of AttHire, please follow the steps below:
-
Fork the repository.
-
Create a new branch for your changes.
-
Make the necessary changes and commit them.
-
Push the changes to your branch.
-
Submit a pull request to the main branch.
This project is licensed under the MIT License. Feel free to use, modify, and distribute the code as you see fit.
Thank you for choosing AttHire!