Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 502 Bytes

CONTRIBUTING.md

File metadata and controls

27 lines (16 loc) · 502 Bytes

How to run locally

Make sure docker is installed.

  • git clone https://github.com/tim-hub/sanic-currency-exchange-rates-api

local dev

  1. python 3.10
  2. export DATABASE_URL = 'psql url'
  3. poetry install
  4. poetry run python src/main.py

docker

docker build -t rate-api . && docker run --name rate-api -t -i -e DATABASE_URL=postgresql://user:pwd@dburl/exchange rate-api 

todo Refactor and Improvement

  • unit test
  • integration test