Move to server
parent
a73fc252d3
commit
729ea8956d
@ -1 +1,2 @@
|
||||
.vscode/
|
||||
.node_modules
|
@ -0,0 +1,17 @@
|
||||
const express = require('express');
|
||||
const app = express();
|
||||
const port = 2255;
|
||||
|
||||
app.use(express.static(`assets`));
|
||||
|
||||
app.listen(port, `127.0.0.1`);
|
||||
|
||||
console.log(`Portfolioen ligne sur le port : ` + port);
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.sendFile(__dirname + `/index.html`);
|
||||
})
|
||||
|
||||
app.get('/fr-FR', (req, res) => {
|
||||
res.sendFile(__dirname + `/french.html`);
|
||||
})
|
Loading…
Reference in New Issue