From 65c951e2d1cdddde4edd6631c4b0c00acc5e563d Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Mon, 9 Mar 2020 18:48:52 +0100 Subject: [PATCH] Start working on server --- app/index.js | 14 ++++++++++++++ package.json | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 app/index.js diff --git a/app/index.js b/app/index.js new file mode 100644 index 0000000..caf1927 --- /dev/null +++ b/app/index.js @@ -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); +}) \ No newline at end of file diff --git a/package.json b/package.json index fd7ab03..379178c 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "start": "node app/" }, "keywords": [], "author": "",