ariketa-01/index.js
2021-03-05 10:05:05 +01:00

13 lines
266 B
JavaScript

const express = require('express');
const app = express();
app.set('port', 8080);
app.get('/', (req, res) => {
res.status(200).send('Hello World!!');
});
app.listen(app.get('port'), () => {
console.log('Zerbitzaria martxan ' + app.get('port') + ' atakan');
});