Skip to content

Commit

Permalink
Merge pull request #2 from jirrick/next
Browse files Browse the repository at this point in the history
Version 0.3.0
  • Loading branch information
jirrick committed Oct 29, 2017
2 parents e0f39ab + 6ff2851 commit 06a08ae
Show file tree
Hide file tree
Showing 24 changed files with 671 additions and 367 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
@@ -1,4 +1,5 @@
node_modules
npm-debug.log
.git
.gitignore
.gitignore
env.list
4 changes: 2 additions & 2 deletions .eslintrc.json
@@ -1,6 +1,6 @@
{
"parserOptions": {
"ecmaVersion": 6
"ecmaVersion": 8
},
"env": {
"node": true
Expand All @@ -12,7 +12,7 @@
4
],
"linebreak-style": [
"warn",
"off",
"unix"
],
"quotes": [
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -60,7 +60,7 @@ typings/
package-lock.json

# do not commit real config
config.js
env.list

# vscode launch config
.vscode/launch.json
2 changes: 1 addition & 1 deletion Dockerfile
@@ -1,4 +1,4 @@
FROM keymetrics/pm2:6
FROM keymetrics/pm2:8

# Create app directory
WORKDIR /usr/src/quido
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -4,5 +4,5 @@ Node.JS app for Papouch Quido modules
## quickstart guide
```
docker pull jirrick/quidoserver:latest
docker run -v /path/to/config.js:/usr/src/quido/src/config.js -d -p 3001:3001 jirrick/quidoserver:latest
docker run -d -p 3001:3001 --env-file env.list jirrick/quidoserver:latest
```
7 changes: 5 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "quido",
"version": "0.2.0",
"version": "0.3.0",
"description": "quido server",
"main": "server.js",
"scripts": {
Expand All @@ -10,11 +10,14 @@
"author": "",
"license": "MIT",
"dependencies": {
"body-parser": "^1.18.2",
"expr-eval": "^1.2.0",
"express": "^4.15.4",
"express-prettify": "0.0.8",
"helmet": "^3.8.1",
"mongoose": "^4.11.11",
"round-to": "^2.0.0",
"strong-error-handler": "^2.2.0"
"strong-error-handler": "^2.2.0",
"winston": "^2.3.1"
}
}
2 changes: 2 additions & 0 deletions pm2.json
Expand Up @@ -4,10 +4,12 @@
"script": "src/server.js",
"env": {
"PORT": 3001,
"CONSOLE_LEVEL": "debug",
"NODE_ENV": "development"
},
"env_production": {
"PORT": 3001,
"CONSOLE_LEVEL": "verbose",
"NODE_ENV": "production"
}
}]
Expand Down
210 changes: 0 additions & 210 deletions src/class/boardClasses.js

This file was deleted.

36 changes: 0 additions & 36 deletions src/config-template.js

This file was deleted.

9 changes: 4 additions & 5 deletions src/controllers/appController.js
@@ -1,10 +1,9 @@
'use strict';

const environment = process.env.NODE_ENV || 'development';
const environment = process.env.NODE_ENV || 'no-environment',
version = require('../../package.json').version;

//Index page
exports.main = function (req, res) {
res.send('Welcome to jirrick\'s quidoServer @ ' + environment);
};

//Settings page - TODO
res.send(`Welcome to jirrick's quidoServer v${version} @ ${environment}`);
};

0 comments on commit 06a08ae

Please sign in to comment.