- That's a simple webapp with worker which stores cryptocurrencies prices and other data into postgres
What do you require to use?
- Just python 3.10+ and postgresql database OR docker (with compose)
Web gui mode
- Run
docker-compose build
anddocker-compose up
(if you don't have postgresql running already) - Create .env file inside
./backend
folder and createDB_URL
variable with url to the postgresql - Add
POSTGRES_PASSWORD, POSTGRES_USER, POSTGRES_DB and POSTGRES_HOST
variables in .env - run
python3 main.py
Cli mode
- Run
docker-compose build
anddocker-compose up
(if you don't have postgresql running already) - Create .env file inside
./backend
folder and createDB_URL
variable with url to the postgresql - Add
POSTGRES_PASSWORD, POSTGRES_USER, POSTGRES_DB and POSTGRES_HOST
variables in .env - run
python3 main.py --cli--currencies <currency_code> <crypto_code> --dates <date_from> <date_until> --chart-type <type>
-- currencies
- takes two args - <currency_code> - eg. USD
and <crypto_code> - eg. BTC
-- dates
- takes two args - <date_from> and <date_until> - iso format date - eg. 2023-10-23
--chart-type
- takes one arg - <type>
- choice from price, market_cap, market_cap_dominance