express is runable
This commit is contained in:
parent
8f554af946
commit
d2d98c7a0f
2 changed files with 16 additions and 2 deletions
14
src/back/main.js
Normal file
14
src/back/main.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
const express = require('express');
|
||||
|
||||
const app = express();
|
||||
|
||||
app.use(express.json());
|
||||
|
||||
app.get('/', (request, response) => {
|
||||
response.status(200).send('elo fren!')
|
||||
})
|
||||
|
||||
const PORT = 3003;
|
||||
app.listen(PORT, () => {
|
||||
console.log(`Server running on port ${PORT}`);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue