premiere distribution de la page web
This commit is contained in:
12
server/server.js
Normal file
12
server/server.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const express = require('express');
|
||||
const path = require('path');
|
||||
|
||||
const app = express();
|
||||
const PORT = process.env.PORT || 3000;
|
||||
|
||||
// Sert tous les fichiers du dossier "public"
|
||||
app.use(express.static(path.join(__dirname, '../client')));
|
||||
|
||||
app.listen(PORT, () => {
|
||||
console.log(`Serveur démarré sur http://localhost:${PORT}`);
|
||||
});
|
||||
Reference in New Issue
Block a user