Express framework: Express is a popular web application framework for Node.js. It provides a simple API for building web applications, including routing, middleware, and templating. Here's an example of how to create a basic Express app:
javascript
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send('Hello, World!');
});
app.listen(8080, () => {
console.log('Server started on port 8080');
});
No comments:
Post a Comment