- run
./install.sh
to install the application - run
./run.sh
to run the application - open http://localhost:8000/BioBLESS/index.html to enjoy it.
frontend
Frontend logic lies herebackend
Backend code locates heredoc
Documents for developers and users
This project is backend/frontend separatable. This means that you can deploy backend and frontend in different places given frontend is capable of connecting to the backend(e.g. You can run backend in a webserver/your pc, and frontend in wherever a html5-friendly webbrowser is supported. Then you can configure the frontend to connect to the backend, this will be easy).
- python 2.7
- build-essential
- pip
- virtualenv
backend
Root of djangobackend/BioBLESS
Functional codes- Test cases are in the
backend/BioBLESS
directory
- django for website
- matplotlib for plotting
- networkx for graph
- you could just use
pip install -r requirements.txt
to install all the dependency.
cd BioBLESS/biocircuit
make
python biogate_gen.py
cd ../..
python manage.py migrate
python manage.py loaddata parts
python manage.py runserver 0.0.0.0:8000
if you would like serve the static file by a nginx/apache server, you could change setting STATIC_ROOT
in backend\BioBLESS\settings.py
to your nginx document root directory, and run python manage.py collectstatic
to copy the static file to your web server directory.
you could run
python manage.py test BioBLESS
for unit test
Please install sphinx package for python. For example:
pip install -U Sphinx
you could run
./doc_build/gendoc.sh (under *nix/macos)
doc_build\gendoc.cmd (under windows)
Then you can open doc_build/doc/html/index.html to view the doc
A built doc exists in doc_build/backend_doc.zip, just use it for convenience.
You can find it in the URI /docs
Browser Requirements: IE 9+, Safari 5.1+, Edge, current Chrome or Firefox.
If you just want to use our software, you do not need to build the source. If you want to make some improvement, or build the frontend documentations, you can see the instructions below.
First of all, you need to install nodejs and npm.
For example, ubuntu 14.04 please run below:
# apt-get install nodejs-legacy npm
jQuery-2.1.4 License: MIT
Pixi.js-3.0.7 License: MIT
mocha-2.2.5 License: MIT
chai-3.2.0 License: MIT
You should just execute the following command:
$ npm install
$ npm run build
Run it to view the documents:
$ npm run build-doc
$ npm test