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

API for Pizzi fueled by TypeScript NodeJS, built on OAuth2 and REST

Notifications You must be signed in to change notification settings

PizziPayment/PizziResourceServer

Repository files navigation

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

About

API for Pizzi fueled by TypeScript NodeJS, built on OAuth2 and REST

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •