Homework Week 8
Introduction
This week, we had our first introduction to the world of backend programming, learning how to set up routes for our apps, and create a CRUD interface. We also skimmed through an introduction to databases, with a broad introduction to MongoDB’s NoSQL approach to storing data.
For the bonus homework, you’ll be creating a CRUD interface by yourself; we’re going to create a backend for the todo list app that we created in homework 6.
Assignment
1) freeCodeCamp exercises | 1 hour
Once again, we have some exercises from freeCodeCamp to give you some more practice at using this new syntax.
- Setup instructions (Node/Express)
- Start a working Express server
- Serve JSON on a specific route
- Implement a request logger middleware
- Get route parameter input from the client
- Get query parameter input from the client
- Get data from POST requests
- Setup instructions (MongoDB)
- Install and setup mongoose
- Create a model
- Create and save a record of a model
- Use Model.find()
- Use Model.findOne()
- Use Model.findById()
- Perform updates with mongoose
- Delete one document with Model.findByIdAndRemove()
- Chain query helpers together
2) Week 8 Feedback | 2 mins
Fill out the form for this week’s feedback form here. This will include some standard feedback that you’ll be asked every time, as well as some specific questions for this week.
This will be helpful for me to tweak the course as we go along, and will help me to flag any topics which were confusing, which I should revisit in future lectures.