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
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.