-
http://localhost:5000/api/profile (get all profiles)
-
http://localhost:5000/api/profile/post (insert a single profile)
-
http://localhost:5000/api/profile/update/:id (update the profile of an existing user)
- node (ver 14.16.1 up)
- mongodb(ver 4.4.6 up)
- cd into the directory
cd ~/project-directory/
- install packages
npm install
- run the project with nodemon
npm run dev
- NODE_ENV: "production" or "development"
- MONGO_LOCAL_URI: "mongodb://localhost:27017/yourDbName"