This is a small webapp for logging and tracking pain levels in people with chronic pain (or who just want to track their pain). I'm making this as a learning exercise in API design in python.
It's served by a database running on a docker container on my machine. To run this app:
- Clone the repo
- Activate the virtual python environment by running
source ouchcounterpy/bin/activate
and runpip install
to get all of the dependencies docker pull postgres
to get the PostgreSQL image on your computerdocker run --rm --name postgres -e POSTGRES_PASSWORD=makepasswordhere -d -p 5432:5432 -v $HOME/path/to/persistent/volume:/var/lib/postgresql/data postgres
- Edit the SQLALCHEMY_DATABASE_URI to include your database password and docker IP address.
- Run the app and initialize the database by running the following commands in the
ouchcounterpy
virtual environment:from app import db
db.create_all()