V School | Better Humans, Better Outcomes

Exercise - String Manipulation

The purpose of this exercise is to get you comfortable using the terminal with node, npm, and your text editor. You will learn the basics of string manipulation and how to find things on the Internet. Using the NodeJS package readline-sync, create an interactive program that asks you some personal

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