SEVENTH POST: Express.js

Express is a back-end(server-side) web framework for Node.js. It is very fast and minimalist framework. We can use Express with React, Angular or Vue to build powerful full stack applications..We can build APIs using Express, that take requests from front-end and serve data is JSON format.
- Why We Need to Use Express.
- Can make web apps more easier with Node.js.
- Use with server rendered apps & API/Microservices.
- Light, Fast and Free.
- Control of request and response.
- Most suitable to use with client-side js frameworks like Angular, Vue or React.
- Most popular Node framework.
- Some small examples of what we can do with Express.
- Send content to browser.

- Send a file content to browser.

- Send JSON.

- Middleware Functions.
Functions that have access to request and response objects. Express has it’s own middleware, 3rd party packages middleware. We cal also build our own middleware with Express. Things we can do with middleware,
- Execute code segments.
- Make changes to request/response objects.
- End response cycle.
- Call another middleware.

-Prabath Shalitha (2020 Mar 22)