unspectacular commit =P

This commit is contained in:
Lukas Bachschwell 2017-03-14 16:02:54 +01:00
parent f727401af0
commit 1a680725a3
6 changed files with 36 additions and 49 deletions

View File

@ -1,45 +0,0 @@
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using npm@4.1.2
3 info using node@v7.1.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle uniScore@1.0.0~prestart: uniScore@1.0.0
6 silly lifecycle uniScore@1.0.0~prestart: no script for prestart, continuing
7 info lifecycle uniScore@1.0.0~start: uniScore@1.0.0
8 verbose lifecycle uniScore@1.0.0~start: unsafe-perm in lifecycle true
9 verbose lifecycle uniScore@1.0.0~start: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/LB/Desktop/z_Projects/uniScore/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/go/bin:/usr/local/MacGPG2/bin:/Library/TeX/texbin:/Users/LB/.rvm/bin:/Users/LB/pebble-dev/PebbleSDK-3.6/bin:/usr/local/sbin:/Users/LB/Library/Android/sdk/platform-tools:/Users/LB/.meteor:/Users/LB/.rvm/bin:/Users/LB/pebble-dev/PebbleSDK-3.6/bin:/usr/local/sbin:/Users/LB/Library/Android/sdk/platform-tools:/Users/LB/.meteor
10 verbose lifecycle uniScore@1.0.0~start: CWD: /Users/LB/Desktop/z_Projects/uniScore
11 silly lifecycle uniScore@1.0.0~start: Args: [ '-c', 'node ./bin/www' ]
12 silly lifecycle uniScore@1.0.0~start: Returned: code: 1 signal: null
13 info lifecycle uniScore@1.0.0~start: Failed to exec start script
14 verbose stack Error: uniScore@1.0.0 start: `node ./bin/www`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:885:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid uniScore@1.0.0
16 verbose cwd /Users/LB/Desktop/z_Projects/uniScore
17 error Darwin 16.4.0
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
19 error node v7.1.0
20 error npm v4.1.2
21 error code ELIFECYCLE
22 error uniScore@1.0.0 start: `node ./bin/www`
22 error Exit status 1
23 error Failed at the uniScore@1.0.0 start script 'node ./bin/www'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the uniScore package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error node ./bin/www
23 error You can get information on how to open an issue for this project with:
23 error npm bugs uniScore
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls uniScore
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

View File

@ -3,7 +3,6 @@
"version": "1.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www"
},
"dependencies": {
"body-parser": "~1.13.2",
@ -14,5 +13,6 @@
"morgan": "~1.6.1",
"serve-favicon": "~2.3.0",
"socketio": "^1.0.0"
}
},
"devDependencies": {}
}

18
public/js/back_client.js Normal file
View File

@ -0,0 +1,18 @@
// @flow
'use strict';
// This is the backend client js
let iosocket: object = io.connect();
// setup all my handlers
iosocket.on('clientrefresh', () => {
location.reload();
});
iosocket.on('stateChange', () => {
location.reload();
});
// get my state
let context = 'admin';
iosocket.emit('loadState',context);

View File

@ -1,4 +1,5 @@
'use strict';
let iosocket = io.connect();
// setup all my handlers
@ -14,3 +15,8 @@ iosocket.on('stateChange', () => {
// get my state
let context = 'main';
iosocket.emit('loadState',context);
function createTeam(member1, member2){
}

View File

@ -7,11 +7,15 @@
<link rel='stylesheet' href='/css/bootstrap.min.css' />
<script type='text/javascript' src='/js/jquery-3.1.1.min.js'></script>
<script type='text/javascript' src='/js/bootstrap.min.js'></script>
<script type='text/javascript' src='/socket.io/socket.io.js'></script>
<script type='text/javascript' src='/js/back_client.js'></script>
</head>
<body>
<h1>{{title}}</h1>
<p>Welcome to {{title}}</p>
<h1>{{Headline}}</h1>
<div class="main-content">
</div>
</body>
</html>

View File

@ -23,5 +23,9 @@
</div>
</div>
<div class="main-content">
</div>
</body>
</html>