- NPM and Node.JS installed (I used v14)
- Mongo DB installed on system <PORT: 27017>
- Mongo DB Compass (not necessary)
- PORT 5000 and 3000 should be free
- Clone this repository.
cd shopify-intern-assignment
cd backend
- Install dependencies with
npm install
- Install nodemon globally with
npm i -g nodemon
- Create a .env file:
- Add the following in it:
PORT= 5000
MONGOOSE_URL = "mongodb://localhost:27017/shopify-assignment"
- Run the backend with
nodemon src/index.js
- In a separate terminal, cd into the frontend folder in the root of the project.
- Clone the frontend repository with
git clone https://github.com/pranav1812/shopify-assignment-basic_frontend.git
- cd into the newly cloned directory
- Install Dependencies with
npm install
- Run the frontend with
npm start
- Refer to this Postman collection https://www.getpostman.com/collections/235870473f2340917ea1