Skip to content

willcooley4/icu-diary

Repository files navigation

icu-diary

The hosted version of this app can be found at the following URL:
https://icu-diary-495.herokuapp.com/
To begin using the webapp you can log into under a variety of accounts. An admin account will allow you to have full access to all aspects of the website, including creating doctor accounts. A doctor account will allow you to make contributions and create new patient accounts. A primary contributor (emergency contact) account will allow you to make contributions and manage new contributors. A patient account will let you view your diary and have the option for a pdf download of it.
The following are already established accounts for a variety of account types.
Admin
user: admin
pass: admin

to run locally:

Running this project locally requires postgresql 14 to be installed and running. We both found this process rather time consuming, but if you wish to test this way, a few small changes must be made to the code.

  1. Replace the database URI in diary/init.py (line 17) with the version that is commented out. If you modified the default username and password for your local instance of postgresql, modify this string to the following format:
    postgres://<username>:<password>@127.0.0.1:5432/icu_diary (without the angle brackets)
  2. Enter your local postgresql with psql -U postgres (install psql for this to run)
  3. Run: CREATE DATABASE icu_diary;
  4. exit postgres with \q

With this postgresql setup, the following in the bash terminal should get the flask app running.

python -m venv env
source ./env/bin/activate
pip install -R requirements.txt
export FLASK_APP=diary
flask init-db
flask run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published