first commit

This commit is contained in:
aitzol 2021-03-04 16:36:29 +01:00
commit b824eb0ada
3 changed files with 30 additions and 0 deletions

2
README.md Normal file
View File

@ -0,0 +1,2 @@
https://apunteak.lainoa.eus
01.-Oinarrizko web aplikazio bat eraiki Node.js, Express.js eta Pug erabiliz - Express.js

12
index_0.js Normal file
View File

@ -0,0 +1,12 @@
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');
});

16
package.json Normal file
View File

@ -0,0 +1,16 @@
{
"name": "ariketa-01",
"version": "1.0.0",
"description": "01.-Oinarrizko web aplikazio bat eraiki Node.js, Express.js eta Pug erabiliz - Express.js",
"main": "index.js",
"dependencies": {
"express": "^4.17.1"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node index.js"
},
"author": "superuser@lainoa.eus",
"license": "GPL-3.0-or-later"
}