Express
lastmod 2022-11-01created 2015-05-0125 edits
Fast, unopinionated, minimalist web framework for Node.js
Example
const express = require('express');
const app = express();
app.get('/', function(req, res) {
res.send('Hello World');
});
app.listen(3000, function() {
console.log('Listening on port 3000');
});
TDD
- [Recommended] Let's try TDD with Node.js 1
- [Recommended] Testing Node.js Express
- Express Routes: A TDD Approach
- A TDD Approach to Building a Todo API Using Node.js and MongoDB
Troubleshooting
Express command not found
If the express command cannot be found, install it as shown below. Note that you must add administrator privileges and the global install (-g) option.
See also
Favorite site
Process Manager
Guide
- [Recommended] Production best practices: performance and reliability
- A look at setting up a development environment with express and vue 6 (express, vue)
References
Pages that link here