Building ApplicationsLesson 42Free preview
Express.js
This lesson is part of Node.js · All levels
Summary
Express is a lightweight framework on top of the http module that facilitates route mapping, request handling, and middleware use. You can create REST API with just a few lines of code. Features such as modular routers and template engines make Express relevant for small and large projects.
Key points
- Express is made with express() and then heard via app.listen
- App.get, app.post, and others map HTTP methods to the handler
- Put middleware on the entire route
- Modular routers divide endpoints into different files
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.