Skip to content

daniel-aguilar/pyfolio

Repository files navigation

pyfolio

Folio is an Electronic Medical Record (EMR) tailored for a relative of mine.

pyfolio is the current implementation of Folio, which was previously written in PHP (Yii 2).

Requirements

  • Python 3.12
  • Make
  • PostgreSQL 15
  • AWS S3

Building

Install the dependencies:

pip install -r requirements.txt

Create a .env file in the root directory, with the following variables:

  • DATABASE_URL: A PostgreSQL connection URI.
  • DJANGO_SETTINGS_MODULE: The current Django settings you want to use (e.g. pyfolio.settings.dev).
  • AWS_ACCESS_KEY_ID & AWS_SECRET_ACCESS_KEY: AWS access keys.

Run it:

./manage.py runserver

Testing

Run the test target:

make test