Learn how to import data into Mongo.
- [Instructor] Now that you understand the differences…between relational databases and document databases,…it's time to play with the database itself.…For this section, we'll stick with the to-do list API…so you could see how the work we did earlier maps…to a mongo-driven hapi node.js application.…In the example code, you can see a task-data.json file…which has the same data we work with in the example.…Let's pull that data into a mongo collection…and work with it…instead of setting the data up manually.…
Looking at that file, you can see that…it's just the same thing we declared…in the original script.…A couple of tasks, each with an owner, easy enough.…Now, how could we pull this information…into a mongo collection…and how could we work with it from there?…First up, let's get the server started.…Open up your terminal window and type…/etc/init.d/mongodb start…/etc/init.d/mongodb start…and you'll get a note…that you're mongo db server has started up.…To import the file,…you're going to use the mongo import command…
- Setting up the development environment
- Consuming an API using HTTPie
- Inspecting Mongo data
- Updating the server for MongoDB read functionality
- Setting up application endpoints
- Implementing user endpoints, progress endpoints, and promises
Skill Level Intermediate
Node.js: Build Your First Microservicewith Daniel Khan2h 9m Intermediate
Building a Website with Node.js and Express.jswith Ray Villalobos3h 16m Intermediate
1. API Fundamentals
2. Database Setup
3. Set Up the Fitbit API
4. Create the Progress API
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
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.