server setup

This commit is contained in:
Amra Šabić
2018-02-17 11:12:19 +01:00
parent 8c7cfb08da
commit 14f42b113e
2 changed files with 16 additions and 2 deletions

View File

@@ -4,7 +4,8 @@
"description": "API for managing a list of user and associated permissions",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon server.js"
},
"repository": {
"type": "git",
@@ -15,5 +16,11 @@
"bugs": {
"url": "https://github.com/senaduka/amras-zadatak1/issues"
},
"homepage": "https://github.com/senaduka/amras-zadatak1#readme"
"homepage": "https://github.com/senaduka/amras-zadatak1#readme",
"devDependencies": {
"nodemon": "^1.15.0"
},
"dependencies": {
"express": "^4.16.2"
}
}

View File

@@ -0,0 +1,7 @@
var express = require('express'),
app = express(),
port = process.env.PORT || 3000;
app.listen(port);
console.log('API server started on: ' + port);