You need to have installed:
- Yarn https://yarnpkg.com/getting-started/install (
npm install -g yarn
) - Docker https://docs.docker.com/get-docker/
In order to run the backend, first you need to install dependencies:
yarn install
For working server, database should be installed and configured, package is coming with configured docker-compose
, so the easiest way is to use it as it is.
In separate terminal run (it may take some time when you run it first time):
docker-compose up
After, you need to create required schema in database, for this we need to use knex migrations (there has been created a separate npm script for that purpose):
yarn run migrate
Note: Please remember, when new functionality would come, you may need to call migration again.
Ok, right now all ready for the start!
Please run following command:
yarn run start
Start command run server by default on port 8888
You can check application status visiting next URL:
http://localhost:8888/v1/health
Swagger with all available API's can be found here: