Shopify is a site where a user can buy and review a product. In order to buy or review any product you must have an account.
This project was created using Node.js, Express, Mongoose, MongoDB and Bootstrap.
Passport.js was used to handle authentication.
- Users can create an account.
- Users can also Add, Edit and Delete any product if username is "admin"
- Users can post reviews on products.
- Users can add products into a cart.
- Users can buy products and their orders are visible on MyOrders page.
- An admin can change the Order status of any user to Placed, Confirmed, Delivered, Completed.
- Users can search products by Name.
- Users can sort the products by highest rating, most reviewed, highest price or lowest price.
- Install mongodb
- Create an cloudinary account to make your API key and secret code.
- Run the below command to install all the necessary packages.
npm install
Create a .env file in the root directory of your project and do the following
CLOUDINARY_CLOUD_NAME= 'name'
CLOUDINARY_KEY='key'
CLOUDINARY_SECRET='secret'
Run the node app.js in the terminal of project.
Then go to localhost:3000