Scott spends a few minutes looking at a JSON representation of the schema for the blog application. After walking through the properties, he answers a few questions about migrating data to a new schema.
[Oriental Music]…- So now that we know a little bit about creating schemas,…and I say a little bit, I mean its still just a little bit.…There's way more to this but again that's like a whole…separate thing, I could talk about…Mongo and Mongoose for like a week.…We know just enough to get started with our API.…So now that we do know that much,…we can actually just,…we'll use JSON again to blueprint…how our resources are going to look just like we did before.…So remember we've got three resources,…users, posts, and categories.…So I wrote some JSON to let you see what that looks like.…
So users, for now all they have is usernames.…That's it, and they have to be unique.…So here's an example of what a user resource will look like.…It's an object with a username and a string.…Posts, they have a few things.…Four things actually.…So they have a title.…If you just look at the value you can kind of figure out…what its type is, this is obviously a string.…It has text, this is the actual text of the blog post.…If you look at the value it's obviously a string.…
This course was created by Frontend Masters. It was originally released on 12/30/2015. We're pleased to host this training in our library.
- Executing Node.js
- Using Express
- What is middleware?
- Testing in Node.js
- Using Mongo with Node.js
- Data modeling
- Querying data with Mongoose
- Identifying sensitive routes
- Configuring the deployment
Skill Level Intermediate
Building a Slack Bot with Node.js Microserviceswith Daniel Khan2h 9m Intermediate
Building APIs Using Hapi in Node.jswith Kirsten Hunter2h 23m Intermediate
2. REST APIs
5. Organization and Configuration
7. Data Modeling
10. Securing Routes
- 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.