Skip to content

a DDI (drug drug interaction) tool

Notifications You must be signed in to change notification settings

heckelson/king-dee-dee-i

Repository files navigation

King Dee-Dee-I

Deploy on Railway

Setup

Set up DB

You will need the following commands:

  • python
  • sqlite3
  • wget
  • printf
  • gzip

... if you have a bash terminal open, it should hopefully work.

Then just run python setup-database.py and grab a coffee, it'll download the script, install it into the sqlite database, and remove all the temporary downloaded files.

Your database will be available at test.db.

Install Backend Dependencies

  • create a new .venv with python -m venv .venv
  • activate the venv
  • install pipenv using pip install pipenv
  • install all packages using pipenv install
  • install pre-commit hooks by using pre-commit install

Install Frontend Dependencies

  • cd to frontend/
  • yarn install
  • yarn build

Run Application

From the root of the repo, run flask run --host=0.0.0.0 --port=8000 --debug.

This starts up flask in the backend.

Run the frontend

  • Run the flask server (see "Run Application")
  • cd to frontend/ and run yarn serve.

If this does not work, try npm install and npm run serve.