Start working on server

This commit is contained in:
Daniel Bulant 2020-03-09 18:48:52 +01:00
parent 58252ab063
commit 65c951e2d1
2 changed files with 15 additions and 1 deletions

14
app/index.js Normal file
View 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);
})

View file

@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"start": "node app/"
},
"keywords": [],
"author": "",