mirror of
https://github.com/danbulant/covid
synced 2026-06-19 06:31:12 +00:00
Start working on server
This commit is contained in:
parent
58252ab063
commit
65c951e2d1
2 changed files with 15 additions and 1 deletions
14
app/index.js
Normal file
14
app/index.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
const express = require("express");
|
||||
const app = express();
|
||||
const PORT = 1025;
|
||||
|
||||
app.get("/", (req, res)=>{
|
||||
res.json({
|
||||
code: 200,
|
||||
type: "nothing_to_show"
|
||||
});
|
||||
})
|
||||
|
||||
app.listen(PORT, ()=>{
|
||||
console.log("[APP] Ready on port " + PORT);
|
||||
})
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"start": "node app/"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
|
|
|
|||
Loading…
Reference in a new issue