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.…
Author
Released
10/5/2017- 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
Duration
Views
Related Courses
-
Node.js Essential Training
with Alex Banks6h 22m Intermediate -
Building APIs Using Hapi in Node.js
with Kirsten Hunter2h 23m Intermediate -
Learning GraphQL
with Eve Porcello53m 37s Intermediate
-
Introduction
-
Welcome54s
-
Exercise files24s
-
Local environment setup4m 1s
-
-
1. Becoming a Polyglot
-
Overview of languages5m 12s
-
Application overview2m 32s
-
Importing data into MongoDB4m 10s
-
2. Node.js
-
Understanding Node.js3m 22s
-
Express.js setup2m 53s
-
-
3. Python
-
Understanding Python2m 21s
-
Read functionality in Python4m 53s
-
-
4. Perl
-
Understanding Perl3m 51s
-
Explore the Perl code6m 4s
-
Write functionality in Perl5m 53s
-
Solution and Perl overview1m 57s
-
-
5. Ruby
-
Understanding Ruby3m 55s
-
Explore the Ruby code5m 37s
-
Write functionality in Ruby4m 27s
-
Solution and Ruby overview1m 11s
-
-
Conclusion
-
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.
CancelTake 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.
Share this video
Embed this video
Video: Importing data into MongoDB