Skip to content

The main back end application of steve: cross-continental crypto arbitrage.

Notifications You must be signed in to change notification settings

perficere/steve

Repository files navigation

Cross-continental crypto arbitrage.

Requirements

Install Steve’s back end for local development

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

Wanna write some code? Follow these steps first

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!