To access the internal dependencies, you need to set up ssh keys to access Pizzi's github repositories.
yarn install
git clone git@github.com:PizziPayment/PizziBackDeploymentTools.git
cd PizziBackDeploymentTools
docker compose up db -d
cd -
git clone git@ggithub.com/PizziPayment/PizziAPIDB.git
cd PizziAPIDB/deploy
yarn install
yarn start table recreate
cd -
You should now be able to launch the resource server:
yarn run start
The API can be configured through the environment or config files. Environment variables override config files values.
Config files must be inside the config
folder.
custom-environment-variables.json
maps the environment variable names into the configuration structure.default.json
defines default value.
Other config file can be added if needed, see
- Go through the first step of the Setup database if you haven't.
yarn run test