Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Latest commit

 

History

History
64 lines (43 loc) · 1.35 KB

README.md

File metadata and controls

64 lines (43 loc) · 1.35 KB

Pizzi API

Prerequisites

Setup the access to the private repositories

To access the internal dependencies, you need to set up ssh keys to access Pizzi's github repositories.

Install dependencies

yarn install

Setup the database

Creating and launching the database

git clone git@github.com:PizziPayment/PizziBackDeploymentTools.git
cd PizziBackDeploymentTools
docker compose up db -d
cd -

Running migration

git clone git@ggithub.com/PizziPayment/PizziAPIDB.git
cd PizziAPIDB/deploy
yarn install
yarn start table recreate
cd -

Run the API

You should now be able to launch the resource server:

yarn run start

API Configuration

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

Running tests

yarn run test