khanlab / autobids-portal

0 stars 1 forks source link

Autobids Portal

This is a webapp for interacting with the autobids system.

Setup

Non-python requirements

To use all functionality, you will need:

Installation instructions

  1. Set up a virtual environment.
  2. pip install -e ., or poetry install if your environment has poetry.
  3. Adjust your configuration by making a copy of .envtemplate and changing any relevant variables.
  4. Export all necessary environment variables (set -a && . .env && set +a does the job if you keep them in a .env file).
  5. Set up the db: flask db upgrade.

Running the application

Local/Development

The easiest way to get a local development system running is to use docker compose.

  1. docker-compose up --build
  2. The first time and after any DB model changes, run your migrations by sshing into the autobidsportal container (docker -it exec {container_id} /bin/bash) and running flask db upgrade.
  3. The ssh setup for archiving between containers in docker-compose can be a little finnicky. If those steps fail, this is a first place to look. Usually sshing into the relevant containers and running ssh-keyscan and friends can help resolve this.

Production