MARKET is an E-Commerce website.
- User can log into his/her account or create a new one.
- USER PROFILE: from where they can check order status about payment and shipping.
- Full featured shopping cart.
- CHECKOUT PROCESS: shipping, payment method.
- PayPal integration.
- User can give reviews to products.
- Search for finding products easily.
- Admin account from where:
- Can view all products.
- Can view all order history.
- New products can be added/edited.
- Existing users can be converted into admin (vice-versa).
- Admin can check and mark orders, delivered or not.
- second payment gateway like razorpay, stripe, paytm etc.
- Signup/login using google or github.
- Mobile Responsiveness.
Client: React, Redux, Router, SCSS
Server: Node, Express, Mongoose
- Fork/clone or download project.
- Make sure you have Node.js, NPM installed in your system
- In the root folder type following commands:
npm i
cd client
npm i
- It is not necessary but recommended to install nodemon globally by
npm i -g nodemon
- You need to create following accounts:
- PayPal Dev Account for clientID.
- MongoDB Atlas Account for mongo URI.
- In the root folder create .env file
- Make sure to update the .env path in server.js. Replace
<YOUR_PATH>
&<PROJECT_NAME>
accordingly:
require("dotenv").config({
path: "<YOUR_PATH>/<PROJECT_NAME>/.env",
});
To run this project, you will need to add the following environment variables to your .env file
NODE_ENV = development
PORT = 5000
MONGO_URI = "your mongodb uri: REMOVE DOUBLE QUOTES"
JWT_SECRET = "any string of your choice: REMOVE DOUBLE QUOTES "
PAYPAL_CLIENT_ID = "your paypal client id: REMOVE DOUBLE QUOTES"
You can use the following commands to seed the database with some sample users and products as well as destroy all data
# Import data
npm run data:import
# Destroy data
npm run data:destroy
To run the project locally, open CLI in server folder and client folder:
- In server CLI enter
nodemon server.js
- In client CLI enter
npm start
Sample User Logins
admn@xyz.com (Admin)
abc$123456
messi@xyz.com (Customer)
abc$123456
ronaldo@xyz.com (Customer)
abc$123456
- Heroku postbuild script is added to package.json. No, need to build manually.
- Just install heroku and push.
MIT License
Copyright (c) [2021] [Ankush Dogra]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.