V School | Better Humans, Better Outcomes

Warmup - Server by Memory

Your job is to use what you have learned and spin up a NodeJs/Express server with a MongoDB that works. Requirements: * GET endpoint /cars * POST endpoint /cars * PUT endpoint /cars/:carId * DELETE endpoint /cars/:carId * MongoDB name should be cars * GET endpoint /person * POST endpoint /person * PUT endpoint /person/

Bounty Hunting with Mongoose

Boba Fett has asked you to build him an API so he can keep track of his bounties. You have done a satisfactory job up to this point except that every time the server reloads, all the data is wiped. Boba Fett is absolutely not happy about this because it

Intro to Mongoose

Mongoose is a library for connecting to MongoDB and running queries from a Node.js app. Installation is trivial: npm install --save mongoose. Although documents in a MongoDB collection do not have to be homogeneous (they may have different schemas), Mongoose enforces document schemas to make the collection more uniform

Exercise - Mongo Shell Exercise

Remember the Bounty Hunter Exercise from last week? This week you are going to add MongoDB to your app so that the data will be persistent (and not be cleared every time you restart node). For this exercise, you will be practicing CRUD operations using the Mongo shell. This means

Day 21 - The MongoDB Shell

Before you try to access the shell, make sure that you have MongoDB installed and the Mongo Daemon is running. To install MongoDB go here: http://docs.mongodb.org/manual/installation/. To run the Mongo Daemon run this command in terminal: mongod. Then open a new terminal window because the

V School | Better Humans, Better Outcomes © 2026