A Django based web application for engaging users in a health and wellness intervention. The intervention app is generic and can be used to usher users through self-efficacy skills, challenges and information that help motivate.
Requires Python 3.11+ and the Poetry package manager.
- Install pyenv if you don't yet have it. macOS:
brew install pyenv - use pyenv to install python 3.11:
pyenv install -v 3.11.6 brew insall poetry- cd into intervention:
cd intervention - Create a database and user in Posgres
- Create a .env file:
DEBUG=TRUE
SECRET_KEY=your secret key
SENTRY_DSN=
ADMIN_RECIPIENTS=
DATABASE_HOST=localhost
DATABASE_NAME=db_name
DATABASE_USER=db_user
DATABASE_PASS=db_password
DATABASE_PORT=5432
- set python environment:
pyenv local 3.11.6 - install dependencies:
poetry install - poetry shell:
poetry shell - move into app:
cd intervention ./manage.py tailwind installto install django tailwind. If necessary../manage.py migrate./manage.py createsuperuser./manage.py runserver- In a separate shell, run tailwind for develpment
./manage.py tailwind start
Note:
- This is to create a fresh install.
- You will need to create an intervention in the admin called intervention.
- You may chose to create an account with Sentry for better debugging.
Distributed under the MIT License. See LICENSE for more information.
- Kevin Lahoda - klahoda@gmail.com