Learn about importing information into MongoDB and explore the data in the mongo shell.
- [Instructor] Before we get started…building the API Engines,…the database needs to be populated.…I've created a JSON file, quotes.json,…which is in the Exercise Files folder…for this video.…This is the file we'll be using…to get 2,000 quotes into the database.…Let's take a quick look at the file now.…The file itself is a jsonArray of quotes,…each quote has an author and content,…and has an index associated with it.…Note that these index entries are numbers, not strings.…We'll use those index numbers…as IDs in the API Paths…for the individual quotes.…
Now, it's time to import the data into the database.…First, if your using the Docker image,…you will need to use screen…to support multiple terminal windows in one.…Type screen at the prompt,…hit Return to enter,…and then, you'll be in the screen session,…which doesn't look that different…from a regular terminal session,…but it's got cool powers.…Type Ctrl+A, followed by C to create a new window.…Once the second window is created,…you'll be able to move back and forth between them.…
- Why become a polyglot programmer?
- Exploring Node.js, Python, Perl, and Ruby code
- Building on prior knowledge to learn new programming languages
- Learning API read and write functionality in Node.js, Python, Perl, and Ruby
- Implementing API functionality in Node.js, Python, Perl, and Ruby
Skill Level Intermediate
Building APIs Using Hapi in Node.jswith Kirsten Hunter2h 23m Intermediate
1. Becoming a Polyglot
Next steps1m 19s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.