git clone git@github.com:wassermanlab/variome.git
cd variome
- Set up dependencies
install rye for dependency management: https://rye.astral.sh/guide/installation/ then run:
rye sync
pip install -R requirements.lock
conda env create -f environment.yaml
conda activate variome
pip install -r requirements.lock
- Set up the database
brew install postgresql (if necessary)
brew services start postgresql (if necessary)
psql
CREATE DATABASE variome;
CREATE USER variome WITH PASSWORD 'variome';
GRANT ALL PRIVILEGES on DATABASE variome to variome;
- Set up configuration files (.env)
cp .env-sample .env
(edit .env DB to match with your database environment, set timezone, other variables)
- Load the test fixture data and create a superuser account
python manage.py migrate
python manage.py import_bvl
python manage.py createsuperuser
python manage.py runserver
(optional) - Run on a specific port
python manage.py runserver 8888
cd frontend
npm install
npm run dev