Web application for currency exchanges, money transfers and stock trading. Academical
- Install poetry
cd backend- Run
poetry install - Run
poetry shell
- Make sure yarn is installed
- Run
yarn install
Recommended setup
- Install docker and docker-compose
- Build the images, in the project root:
docker-compose build
- Run containers:
docker-compose up
- To run the migrations:
docker-compose exec backend python manage.py migrate
To fetch currency rates every hour from Fixer.io API,
create a free account. After you get your account,
in the backend directory create .env file, inside provide your API key:
FIXER_IO_API_KEY=<your-api-key>Now, restart the application and now currency rates will be fetched every hour.
To fetch currency rates right away, use python manage.py update_currency_rates.
WARNING: Do not commit your .env file.
To fetch stock prices once a day(from two days ago),
create an account. After you get an account,
in the backend directory create .env file, inside provide your API key:
POLYGON_IO_API_KEY=<your-api-key>Restart an app and stocks will be fetched once a day.
To fetch stocks right away, use python manage.py update_stocks
WARNING: Do not commit your .env file.
To run linters and formatters before each commit, run:
pre-commit installTo run linters and formatters for all files, run:
pre-commit run --all