- Clone this git repository
- Install NodeJS and Insomnia if you haven't already done so
- Open two terminals
This has two files of interest, final.js
which is the completed backend, and index.js
which is what you should develop yourself
- Navigate into the api folder
- Run
npm install
- Run
node index.js
for the in-progress version, andnode final.js
to use the example- Don't forget to save your file, quit the current running version (Ctrl+C), and re-running
node index.js
every time you make a change - Don't forget to save your file
- I beg you not to forget to save your file
- Don't forget to save your file, quit the current running version (Ctrl+C), and re-running
This is purely to see the results of your backend in a more polished fashion, so no need to change anything here past running these directions (unless you want to, please do)
- Navigate into the web folder
- Run
npm install
- Run
npm run dev
Read over the extensive comments in final.js
to get an understanding of what's happening, then go to index.js
and attempt to fill it out based on the prompts, checking back to final.js
when you need to, or better yet, looking out for online resources.
- FreeCodeCamp's Express + NodeJS Handbook
- Mozilla's Guides on HTTP Verbs and Status Codes
- This Insomnia Tutorial
- Show up to Member Ed (extra recommended)