| 1234567891011121314 |
- const express = require('express');
- const app = express();
- const port = 3000;
- // Route de base
- app.get('/', (req, res) => {
- res.send('Hello, World!');
- });
- // Démarrer le serveur
- app.listen(port, () => {
- console.log(`Server is running on http://localhost:${port}`);
- });
|