Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 808 Bytes

README.md

File metadata and controls

60 lines (39 loc) · 808 Bytes

Leafy

Local development

Initialize the virtual environment:

make init

Run migrations (it will use a local sqlite database for development):

make makemigrations

Run the web server:

make serve

Run the bot (it requires a telegram token):

export TELEGRAM_TOKEN=...
make bot

Docker Compose development

This environment resembles the production environment as closely as possible.

Run migrations:

docker-compose run --build --rm migrate

Start the web app:

docker-compose up -d --build ingress

Access at http://localhost:8000

Create a superuser:

docker-compose run --rm web python manage.py createsuperuser

Start the Telegram bot:

export TELEGRAM_TOKEN=...
docker-compose up -d --build bot