-
Create
.env
file and set the following environment variables:MYSQL_ROOT_PASSWORD=root MYSQL_DATABASE=clidb MYSQL_USER=cli MYSQL_PASSWORD=password MYSQL_HOST_ADDRESS=127.0.0.1 MYSQL_PORT=3306
-
Install local Python version with pyenv:
$ pyenv install 3.5.0
-
Create virtualenv:
$ pyenv virtualenv 3.5.0 python-cli $ echo python-cli > .python-version
-
Install invoke job runner:
$ pip install invoke
Install the app:
$ inv install
-
Install requirements:
$ inv init --development
-
Start MySQL in a Docker container:
$ docker-compose create $ docker-compose start
-
Run the alembic migrations:
$ inv migrate