Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.51 KB

README.md

File metadata and controls

52 lines (39 loc) · 1.51 KB

Build Status

Alliance of Genome Resources Prototype

An initial prototype for the web portal of the Alliance of Genome Resources.

Prerequisites

Ensure you've installed pip and virtualenv and nodejs.

Create a virtualenv for isolating the python dependencies:

mkdir -p ~/.virtualenvs/agr_prototype
# The prototype currently requires Python2
virtualenv -p python2 ~/.virtualenvs/agr_prototype

Getting started

source ~/.virtualenvs/agr_prototype/bin/activate
make build
make run

To run tests

source ~/.virtualenvs/agr_prototype/bin/activate
make tests

Development Environment Pro Tips

Assets are compiled using webpack. To enable hot module replacement in your development environment, run npm start while the dev server is running and refresh the page. Subsequent JavaScript changes will go to your browser as a "hot update" without refreshing.

You can run JavaScript unit tests automatically on each file change by running npm run test:watch.

JavaScript coding style is enforced with ESLint. The rules are configured in the .eslintrc file.