Commit ca402744 authored by Magnus Holm Brunbjerg's avatar Magnus Holm Brunbjerg
Browse files

update

parent 8695b3d2
# web-server # web-server
## Responsibility The web server provides the visualisation layer
\ No newline at end of file
- [ ] Web interface
- [ ] Login
- [ ] Websocket for data updating
\ No newline at end of file
'use strict' 'use strict'
require('dotenv').config() require('dotenv').config()
const app = require('./src/app/index') 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}`)
})
{ {
"name": "web-server", "name": "web-server",
"version": "1.0.0", "version": "1.0.0",
"description": "## Responsibility", "description": "The web server for the gain.fam ITPDP platform",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1",
"start": "node index.js"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git@gitlab.au.dk:ITPDP2019/gain.fam/web-server.git" "url": "git@gitlab.au.dk:ITPDP2019/gain.fam/web-server.git"
}, },
"author": "", "author": "gain.fam",
"license": "UNLICENSED", "license": "ISC",
"dependencies": { "dependencies": {
"dotenv": "^7.0.0", "dotenv": "^7.0.0",
"express": "^4.16.4", "express": "^4.16.4",
......
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