Skip to content

hasadna/leafy

Repository files navigation

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