Meal planner/recipe database built with Python, Django and htmx. Deployed on dinrplan.fly.dev.
- Python 3.9+
- PostgreSQL
- hatch
Make sure to remember the password.
- Start psql by searching for psql via the Start menu and pressing Enter
- Press Enter, Enter, Enter, Enter, enter your password, Enter
CREATE DATABASE dinrplan;
- Optionally create a user for the database, or just use the default user.
cp .env.example .env
Edit the database user and password.
hatch env create
hatch run pre-commit install
hatch run python manage.py migrate
hatch run python manage.py collectstatic
hatch run playwright install
hatch run pytest
hatch run server
hatch run pytest
After changing database schema, run
hatch run pytest --create-db
to force re-creation of the test database.
git push
The project is automatically deployed to dinrplan.fly.dev when the Github Actions pass.