An initial prototype for the web portal of the Alliance of Genome Resources.
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
source ~/.virtualenvs/agr_prototype/bin/activate
make build
make run
To run tests
source ~/.virtualenvs/agr_prototype/bin/activate
make tests
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.