Run Locally

1. Clone repo

$ git clone https://github.com/shrimanm/Full-stack-E-commerce-website-using-MERN.git
$ cd mern-amazona

2. Create .env File

  • duplicate .env.example in backend folder and rename it to .env

3. Setup MongoDB

  • Local MongoDB
    • Install it from here
    • In .env file update MONGODB_URI=mongodb://localhost/amazona
  • OR Atlas Cloud MongoDB

4. Run Backend

$ cd backend
$ npm install
$ npm start

5. Run Frontend

# open new terminal
$ cd frontend
$ npm install
$ npm start