To contribute: Fork the repository, make the changes, and submit pull request.
The build is based on npm and webpack.
brew install git
brew install node
sudo apt-get install git-all
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
git clone https://github.com/BD2KGenomics/brca-website.git
cd brca-website
npm install
npm start
The server runs on Django with postgres so install and set up those
sudo apt-get install postgresql postgresql-contrib
sudo -u postgres createdb storage.pg
sudo -u postgres psql postgres
\password postgres
to set the password to postgres
pip install -qU -r requirements.txt
cd django
python manage.py migrate
python manage.py runserver
js/backend.js
to point to localhost:8000
Use npm run lint
to run the lint rules. We lint with eslint and babel-eslint.
This process will delete all the previous data from the variants
table and replace it with data from a new tsv file.
data/resources/aggregated.tsv
with the new data filedjango/data/models.py
- this is the python model that corresponds to all the table columnsdjango/data/migrations/0001_initial.py
- specifies all the table columns, it matches the model above and the tsv headersdjango/data/migrations/0002_search_index.py
- specifies which columns are used in full text searchdjango/data/migrations/0004_autocomplete_words.py
- specifies which columns are used in autocomplete suggestionsjs/VariantTable.js
:
columns
specifies which columns appear in the default mode and their namesresearch_mode_columns
specifies which columns appear in research mode and their namessubColumns
specifies which columns appear in the column selection filter and how they're grouped.cd django
python manage.py migrate --fake data zero && python manage.py migrate