-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
102 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
module.exports = { | ||
help: { | ||
boolean: true, | ||
describe: "Display this message." | ||
}, | ||
port: { | ||
alias: "p", | ||
default: "3000", | ||
describe: "Port used to lift the server." | ||
}, | ||
env: { | ||
default: "dev", | ||
describe: "Environment in which to run the server." | ||
}, | ||
DB_PORT: { | ||
default: 27017, | ||
describe: "Port of the mongodb server." | ||
}, | ||
DB_HOST: { | ||
default: '127.0.0.1', | ||
describe: "Host of the mongodb server." | ||
}, | ||
DB_USER: { | ||
default: '', | ||
describe: "User of the mongodb server." | ||
}, | ||
DB_NAME: { | ||
default: 'touchka-refsys', | ||
describe: "Database of the mongodb server." | ||
}, | ||
DB_PASS: { | ||
default: '', | ||
describe: "Password of the mongodb server." | ||
}, | ||
ENTRYPOINT: { | ||
alias: 'EP', | ||
default: "http://localhost:3030", | ||
describe: "Central endpoint for all services." | ||
}, | ||
AUTH_URL: { | ||
default: "http://localhost:3030", | ||
describe: "URL of the auth server of drivers." | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"_": [], | ||
"help": false, | ||
"port": 10101, | ||
"p": "3000", | ||
"env": "dev", | ||
"DB_PORT": 27017, | ||
"DB_HOST": "127.0.0.1", | ||
"DB_USER": "", | ||
"DB_NAME": "touchka-refsys", | ||
"DB_PASS": "", | ||
"ENTRYPOINT": "http://localhost:3030", | ||
"EP": "http://localhost:3030", | ||
"AUTH_URL": "http://localhost:3030", | ||
"$0": "index.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
'use strict'; | ||
|
||
require('touchka').bootstrap(function() { | ||
require('touchka-bootstrap')(function() { | ||
require('./app'); | ||
}, 4); | ||
}, 4, function() { | ||
require('touchka-argv')(require('./cli.help.js'), './config.json'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters