first commit
This commit is contained in:
commit
b824eb0ada
2
README.md
Normal file
2
README.md
Normal 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
12
index_0.js
Normal 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
16
package.json
Normal 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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user