Amazon Clone

Run Locally

Clone repo

2. Setup MongoDB

Local MongoDB
    Install it MongoDB
    Create .env file in root folder
    Set MONGODB_URL=mongodb://localhost/fiege

3. Run Backend (ROOT FOLDER)

  $ npm install (in ROOT FOLDER)
  
  $ npm start

4. Run Frontend (in Client Folder)

$ cd client

$ npm install

$ npm start

5. Seed Users and Products

Run this on chrome: http://localhost:5000/api/users/seed
It returns admin email and password
Run this on chrome: http://localhost:5000/api/products/seed
It creates 6 sample products

6. Admin Login

Run http://localhost:3000/signin
Enter admin email and password and click signin