- Import the "beer-favs.postman_collection" file into your Postman app
- Install Nodemon globaly by running
npm install -g nodemon
- Inside the project folder run
npm install
- Start your server by running
nodemon app.js
This will keep our server reloading automatically whenever you update something in the .js files.
Unfortunately our API to get our favorite beers is currenlty broken
Look over the app.js file to try to fix the API.
Start fixing the API in the following order:
- Get All Beers (GET Request)
- Get One Beer by ID (GET Request)
- Add One Beer (POST Request)
- Update One Beer by ID (PUT Request)
- Delete One Beer by ID (DELETE Request)
GOOGLE IS YOUR FRIEND ;)
Use the documentation for Express, Mongoose & MongoDB
Run the different API calls by clicking the "Send" button in Postman, till you get the proper responses.
Somtimes your node server will crash! Make sure it is running properly, by checking the terminal. The command
rs
will reload it manually.