VIKING GARAGE API
Check out .env.example with sample data
Homebrew Node.js
To run application you have to set env vars. Check app.json
for required variables and default values. For local build you can create .env
file in root directory with variables (for details check out dotenv)
npm run init
Please check the file scripts/initialize.sh
and files referenced therein, and simply follow the flow.
npm run dev # for development (hot reloading)
npm test # for running tests with mocha
npm tdd # for running tests continuously mocha, TDD style
npm start # for production environment
Application use debug (npm module) for logs (checkout link for docs). To enable logs from the API services, set env var DEBUG=api:*
. To add logs to a new module:
import debug from 'debug';
const log = debug('api:NameOfModule');
log('go to stout with prefix "api:NameOfModule"')
- swagger-ui: localhost:4000/docs?url=http://localhost:4000/swagger.json
- openAPI spec: localhost:4000/swagger.json