- Going to add "Nodemon" and "Concurently" into our server so that our server and the frontend can run simentaneously.
npm i -D nodemon concuncurrently
- Going to setup the ENV environment so that I can place all my personal details like API key etc in that file
npm i dotenv
- Use
process.env
to access the contents in the env file.
- Added a
MONGO_URI = {fetched from the website}
field in the.env
file 7} Adding Mongoose in the projectnpm i mongoose
- Added Schemas for Users Products and Orders
- Using
npm i bcryptjs
to encrypt the password in mongoDB - Creating a Seedr script to seed data in the DB
- Fetched data from the website and displayed it in the browser