BackendService for RapJeu
To install the dependencies use:
$ npm install
To start the service use:
$ npm start
The configuration is done through the environment variables.
It can also be done within a .env
file.
See config.js for more details.
Variable | Description | Type |
---|---|---|
API_KEY |
API key (for administrators only) | String |
ACCESS_TOKEN_SECRET |
Secret access token | String |
DEFAULT_MIXED_ARRAY_LENGTH |
Default length for mixedArray received by users | Number |
GET_MIXED_ARRAY_MAX_EXECUTION_TIME_MS |
Maximal execution time (in milliseconds) for the getMixedArray controller method | Number |
LOG_LEVEL |
Log level (using log4js) for Sequelize log | String [off, fatal, error, warn, info, debug, trace] |
You can use Docker Compose to create a development database using:
$ docker-compose -f docker/postgres/docker-compose.yml up -d