![]() ![]() Scott sets up the next exercise for getting the API route tests to pass by implementing the controller methods. Scott codes a controller method that works for all the resources as well as handles errors. Inside controllers you handle incoming requests and send back the response. Scott also gives an overview of REST using HTTP verbs and the tradeoffs of it. He takes the parameter of the route and passes that to the controllers. Scott walks through the solution of importing the sub routers and setting up the routes. In the challenge you'll be creating your own express sub router modules to route different paths to resources in the API. Įxpress Routing module has many features including pattern matching, multi-router support and support for all HTTP verbs. HMR speeds up development by loading your node modules through webpack right after your files are saved. Scott walks through the solution branch code which contains hot module reloading (HMR). Scott codes setting up express and returning a JSON response with a GET request. Overview of the files involved in the exercise to bootstrap express. There are modules for routing, middleware, and lots of plugins to do whatever you would need for building APIs for REST and GraphQL. He gives an overview of the popular Node.js frameworks.Įxpress is the most popular framework for building APIs and is very extensible. ![]() Scott gives an introduction to what Node.js is, a platform built on Chrome's V8 engine with it's own modules for HTTP and file I/O. Welcome to the course! Scott's background is in working on Tipe, OneSpeed, Angular and more. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |