Skip to content

1g0rkR/BTC-LAST-TRADED-PRICE

Repository files navigation

Test application retrive Bitcoin Last Traded Price (ltp)

Env variables

Based on env.example file make .env in the root folder.

  • BTC_PAIRS (example: "BTC/USD,BTC/EUR,BTC/CHF")
  • PORT_NUMBER (default 8000)

Run app locally

Requirements

Use the following command to start server locally source .env && cargo r --release --bin btc_app

Run app in Docker

Requirements

Use the following command to start btc_app: sudo docker-compose up --build -d

Use the following command to shutdown btc_app: sudo docker-compose down

Run Unit tests

Use the command to run unit tests: source .env && cargo t --bin btc_app --tests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published