Scott walks through the solution to exercise 2. He begins with the GET and POST routes, which handle the retrieval and adding of lions.
(panflute music)…- So this stuff was already here for you.…I talked a little bit about body parts…and how we need it to be able to post things…and put things to our server.…Lodash is just a utility library,…very similar to Underscore.…Don't need it, it's just nice to have this stuff.…I also talked about this syntax here, the app.use.…We're going to talk a little bit more about it after lunch,…when we get into middleware.…But it's just a way for us to register middleware…on an application level,…because this object right here, app,…is our web application.…
When we say .use,…what's really happening in the background is this.…There's like an array somewhere,…like appMiddleware,…says stack,…and every time we say app.use,…it pushes in the function…that we're passing into this array.…So express.static is a function…that actually returns another function.…So it's returning a function that looks like this.…We're going to get into middleware as well,…I just want to give you some context.…
This is returning a function that has a request,…
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
Node.js: Build Your First Microservicewith Daniel Khan2h 9m Intermediate
Building APIs Using Hapi in Node.jswith Kirsten Hunter2h 23m Intermediate
Node.js: Extend and Maintain Applicationswith Daniel Khan3h 35m 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?
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.