An API for taxi tickets registration
You can run in your machine using these commands
npm run start
// or
npm run local
NOTE In order to run this API you need to add a .env
file with this structure:
CRYPTO_SECRET=<YOUR_CRYPTO_SECRET>
CRYPTO_ALGORITHM=<YOUR_CRYPTO_ALGORITHM>
TOKEN_SECRET=<YOUR_TOKEN_SECRET>
LOAD_USER_EMAIL=<YOUR_LOAD_USER_EMAIL>
LOAD_USER_PASSWORD=<YOUR_LOAD_USER_PASSWORD>
DB_CONNECTION_STRING=<YOUR_DB_CONNECTION_STRING>
DOCS_HOST=localhost:4000
APP_HOST=http://localhost:4000
NOTE You cand add a test user running this command:
npm run load
npm run test
You at least need this ENV variables.
CRYPTO_SECRET=circlecitestcirclecitestcircleci
CRYPTO_ALGORITHM=aes-192-cbc
TOKEN_SECRET=circlesecret
SERVICE_ENV=ci
DB_CONNECTION_STRING=mongodb://node:node@localhost:27017/tpv-tickets
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
-
Ensure all the lint process and tests are running.
-
Update the README.md with details of changes to the interface, this includes new environment variables, exposed ports, useful file locations and container parameters.
Note: to run the tests execute:
npm run test