Cross-continental crypto arbitrage.
- Docker (needed)
- Docker Compose (needed)
- Make (highly recommended)
- Poetry (highly recommended)
Create your local settings (i.e., environment variables):
make localsettings
Build the Docker images:
make build
If you want, you can drop the database (i.e., erase everything, including migrations):
docker-compose down --volumes
If you want, you can run the migrations manually (the next step will do it for you, though):
(The database might not be ready yet; if the command fails then try again.)
make migrate
Start the application:
docker-compose up
(Then, to stop the application just type ctrl-C
.)
Kill all processes (on another terminal, if the application is still running):
docker-compose down
Create a development-friendly virtual environment:
make createvenv
If new dependencies are added, update your virtual environment and re-build the Docker images:
make createvenv
make build
If you are adding any files or folders that should be considered by Docker, unignore them at the .dockerignore
. Then, re-build the images:
make build
Format your code with black and isort:
make format!