Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 802 Bytes

backend.md

File metadata and controls

36 lines (24 loc) · 802 Bytes

what are the packages

express is a lightwight web framework for nodejs

cors cross origin resource sharing - allows ajax request to acess resourses from other hosts

mongoose makes interacting with mongodb easy

dotenv loads env variables into a process env, env files are stored in the project

Node mon (globally installed), restarts node/sever when changes are detected

create sever

https://cloud.mongodb.com/v2/646adf5832514c381df58af8#/clusters?fastPoll=true

CRUD - acronym

  • create
  • read
  • update
  • delete

https://www.youtube.com/watch?v=7CqJlxBYj-M - 31:08

How to use and edit the json data being sent and recieved

/routes
- /exercises.js
- /users.js
/models
- /exercises.model.js
- /user.model.js
server.js