git clone git@github.com:wassermanlab/variome.git
cd variome
- Install uv for dependency management (it will be available anywhere on your system, but won't collide with other projects): https://rye.astral.sh/guide/installation/
- NOTE: example commands in the rest of the document starting with "python" should start with "uv run" instead
- run:
uv sync
- Setup pip based on your OS and preferred Python environment solution (eg, venv or similar)
- run:
pip install -r requirements.lock
conda env create -f environment.yaml
conda activate variome
pip install -r requirements.lock
Postgres is included as an example, but any database backend supported by Django will work
# mac/linux - with homebrew
brew install postgresql (if necessary)
brew services start postgresql (if necessary)
# windows - with chocolatey
choco install postgresql
net start postgresql
# If psql is not recognized, add PostgreSQL’s bin directory to your PATH environment variable.
# Example: C:\Program Files\PostgreSQL\15\bin
# Opening psql command line)
# mac / linux
psql
#windows
psql -U postgres
# commands to enter into psql command interface
CREATE DATABASE variome;
CREATE USER variome WITH PASSWORD 'variome';
GRANT ALL PRIVILEGES on DATABASE variome to variome;
Edit .env DB to match with your database environment, set timezone, other options
cp .env-sample .env
python manage.py check
or, the UV equivalent:
uv run manage.py check
It should show something similar to this if it's working:
...connecting to postgresql://variome:variome@localhost:5432/variome...
System check identified no issues (0 silenced).
python manage.py migrate
python manage.py import_bvl
python manage.py createsuperuser
python manage.py runserver
(optional) - Run on a specific port. If you do, also specify BACKEND_ROOT=http://localhost:8888 in .env so the frontend can talk to the backend properly
python manage.py runserver 8888
- Install NodeJS and install the dependencies
cd frontend
npm install
- Set up the frontend content files:
cp -r public-example public
cd frontend
npm install
npm run dev
It runs at localhost:3000 by default. You can press "o" and hit the enter key in the terminal window to open in a browser easily. Use "h" for more shortcuts
You can edit the frontend/public files to customize according to branding, access policy information, and any other content.
Markdown format files in the /public folder are treated as full pages, available in the navigation sidebar. You can add more, rename them. To set the icons and sorting order, add them to the IconMap object in public/ContentConfiguration.js.
Markdown format files in /public/Home are individual, "hard-coded" page elements on the Home page, so you shouldn't add more or rename these.
example DNA image: https://commons.wikimedia.org/wiki/File:202104_Laboratory_instrument_dna.svg