Designed a better e-commerce webisite using React and Node like amazon (LOL, not as beautiful as amazon).
MERN stack (MongoDB, ExpressJS, React and Node.JS)
$ git clone https://github.com/Adeniyikayodee/AmazonClone.git
$ cd amazona
- Local MongoDB
- Install it from here
- Create .env file in root folder
- Set MONGODB_URL=mongodb://localhost/amazona
- Atlas Cloud MongoDB
- Create database at https://cloud.mongodb.com
- Create .env file in root folder (update this in gitignore folder)
- Set MONGODB_URL=mongodb+srv://your-db-connection
$ npm install
$ npm start
# open new terminal
$ cd frontend
$ npm install
$ npm start
- Run this on chrome: http://localhost:8000/api/users/seed
- It returns admin email and password
- Run this on chrome: http://localhost:8000/api/products/seed
- It creates 6 sample products
- Run http://localhost:3000/signin
- Enter admin email and password and click signin