Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

project-cemetery/alfie_solomons

Repository files navigation

Mr. Solomons

Money conversation service.

Who?

Production

This service has an MIT license, so you can use it for you own needs.

  1. Run docker build for creating docker-image
  2. Run docker-image: by docker run, docker-compose, k8s or what ever

Container accept the following env-variables:

  • Database (PostgreSQL) connection params: DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, DB_NAME
  • Api-key for Currency Converter ApiMANNY_API_KEY
  • Api-key for Exchange Rates APIEXCHANGE_RATES_API_KEY

Before starting the application, you must initialize tables for application. Run inside the container next commands:

  • yarn trona -y

Now, application listen 3001 port in container, you can use it.

Development

  1. Start PostgreSQL
  2. Create api-keys
  3. Copy file .env.dist to .env
  4. Pass PostgreSQL connection params and api-key to .env
  5. Run application by yarn dev

Now, you can find docs and playground at localhost:3001/docs.