hello world
This commit is contained in:
parent
b3ed1c620d
commit
6868860a85
3 changed files with 1309 additions and 2 deletions
11
index.js
Normal file
11
index.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
const express = require('express');
|
||||
const app = express();
|
||||
const port = 3000;
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.send('Hello World!');
|
||||
});
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Server started on port ${port}`);
|
||||
});
|
||||
1292
package-lock.json
generated
Normal file
1292
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1,12 +1,16 @@
|
|||
{
|
||||
"name": "express-hello-world",
|
||||
"version": "1.0.0",
|
||||
"description": "A joke application.",
|
||||
"dependencies": {
|
||||
"express": "^4.17.1"
|
||||
},
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "node index.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue