13 lines
245 B
TypeScript
13 lines
245 B
TypeScript
|
import express from "express";
|
||
|
|
||
|
const port = 3000; //TODO: mettre port en .ENV
|
||
|
|
||
|
const app = express();
|
||
|
|
||
|
app.get("/", (req, res) => {
|
||
|
res.send("helloworld form dev")
|
||
|
})
|
||
|
|
||
|
app.listen(port, () =>{
|
||
|
console.log(`serveur running in ${port}`)
|
||
|
})
|