Commit 8695b3d2 authored by Magnus Holm Brunbjerg's avatar Magnus Holm Brunbjerg
Browse files

init

parent d520068e
node_modules/
.vscode/
.env
\ No newline at end of file
# web-server
## Responsibility
- [ ] Web interface
- [ ] Login
- [ ] Websocket for data updating
\ No newline at end of file
'use strict'
require('dotenv').config()
const app = require('./src/app/index')
const port = process.env.PORT
app.listen(port, (err) => {
if (err) return console.error(`An error occurred: ${err}`)
console.log(`Web server startet på http://${require('ip').address()}:${port}`)
})
This diff is collapsed.
{
"name": "web-server",
"version": "1.0.0",
"description": "## Responsibility",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@gitlab.au.dk:ITPDP2019/gain.fam/web-server.git"
},
"author": "",
"license": "UNLICENSED",
"dependencies": {
"dotenv": "^7.0.0",
"express": "^4.16.4",
"ip": "^1.1.5"
},
"devDependencies": {
"standard": "^12.0.1"
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment