https://github.com/jacobway/expressappondocs
Practice express js on official documents
https://github.com/jacobway/expressappondocs
expressjs nodejs web
Last synced: 28 days ago
JSON representation
Practice express js on official documents
- Host: GitHub
- URL: https://github.com/jacobway/expressappondocs
- Owner: JacobWay
- Created: 2017-03-11T04:19:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-12T01:54:42.000Z (about 9 years ago)
- Last Synced: 2025-01-29T13:08:56.891Z (over 1 year ago)
- Topics: expressjs, nodejs, web
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Guide
## Routing
Routing resfers to the definition of application end points (URIs) and how they response to client requests.
### Routing methods
* express class -> routing methods -> http methods
### Routing paths
* route path based on strings
* route path based on string patterns
* route path based on regular expressions
### Route parameters
### Route handlers
### Response methods
* response.download()
* response.end()
* response.json()
* response.jsonp()
* response.redirect()
* response.render()
* response.send()
* response.sendFile()
* response.sendStatus()
### app.route()
### express.Router
Use the express.Router class to create modular, mountable route handlers.