Class PPT
Agenda
- Express
- Mysql
- Crypto-Js
- JWT
- nodemon
nodemon
- It is a Node monitor which is used to monitor changes in server and refreshes the server
Express
- Developed by many developers around the world
- It is a fast, minimalistic web framework for NodeJS
- It is a lightweight and flexible routing framework with minimal core features meant to be augmented through the use of Express middleware modules.
to start using express application install express using npm or add using yarn
npm install express
# OR
yarn add express
Routing
- Routing refers to determining how an application responds to a client request to a particular endpoint, which is a URI (or path) and a specific HTTP request method (GET, POST, and so on).
- Each route can have one or more handler functions, which are executed when the route is matched.
- Route definition takes the following structure:
app.METHOD(PATH, HANDLER)