Skip to content

About

Intervention Web Application

Resources

Stars

0 stars

Watchers

3 watching

Forks

Repository files navigation

Intervention Web Application

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.

Setup

Requires Python 3.11+ and the Poetry package manager.

  1. Install pyenv if you don't yet have it. macOS: brew install pyenv
  2. use pyenv to install python 3.11: pyenv install -v 3.11.6
  3. brew insall poetry
  4. cd into intervention: cd intervention
  5. Create a database and user in Posgres
  6. 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

  1. set python environment: pyenv local 3.11.6
  2. install dependencies: poetry install
  3. poetry shell: poetry shell
  4. move into app: cd intervention
  5. ./manage.py tailwind install to install django tailwind. If necessary.
  6. ./manage.py migrate
  7. ./manage.py createsuperuser
  8. ./manage.py runserver
  9. 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.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

About

Intervention Web Application

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages