13 lines
266 B
JavaScript
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');
|
|
});
|