This is a web application for managing an online shopping cart with both user and admin interfaces. It's built using Node.js, Express.js, MongoDB and Handlebars, Bootstrap for the frontend. The application allows users to view products, add them to the cart, place orders with cash on delivery or online payment, and view their order history. Admins can manage products, users, and orders.
-
User Side:
- View products
- Add products to the cart
- Place orders with Cash on Delivery (COD) or Online Payment
- View order history
- Use AJAX for enhanced user experience
-
Admin Side:
- View product list
- Add, edit, and delete products
- Manage users
- Manage orders and update their status
- Node.js installed
- MongoDB installed and running
-
Clone the repository:
git clone https://github.com/Hafilu/Shopping-cart.git cd shopping-cart npm install
Create a .env file in the root directory. Add the environment variables and configure them as needed
npm start
The application should now be running on http://localhost:3000.
- Open a web browser and go to http://localhost:3000 to access the user interface.
- Log in as an admin to access the admin interface.
- Use the different features as described in the Features section.
If you'd like to contribute to this project, please contact me.
Thank Brototype Malayalam for helping me to create this project
