BioPath is a web application with the purpose of serving as a tool to teach students about biochemistry. The current iteration of BioPath includes animations depicting chemical pathways inside the body and how the various elements inside those pathways interact with each other.
We created a wiki page containing documentation for this web application. More detailed documentation can be found in the guide we provided (it's like a 60+ page pdf doc).
- Python3
- Pip3
- Git
- MySQL
- Django
- WSL (Windows only)
- Python3
- JavaScript
- CSS
- HTML
- Install Anaconda or Miniconda
- Miniconda is smaller version of Anaconda so I recommend installing that.
- Either version of Conda that you choose already contains Python and pip so you don't need to worry about installing those.
- Once you have installed Conda, go to your terminal/console and let's create an environment called "biopath":
conda create --name biopath
- Now we'll need to switch to that environment. By default, Conda will put you in the default "base" environment:
conda activate biopath
- Clone our respository:
git clone https://github.com/jgo28/BioPath.git
- Let's install the required components. Navigate to the directory in your downloaded repo where
requirements.txt
is and run:
pip3 install -r requirements.txt
-
Jason helped us set up the Gonzaga server for us to host our BioPath application. You will need to contact him to relaunch the one we were working on. The database should also be on this server.
- As long as you're on campus wifi, you should be able to run and access the server. If you want to run the website on your computer, as long as you're on campus wifi and the server with the database is running, it should be able to run.
-
Before running the server, check if you have the required packages by running the follwing command in your terminal:
python3 manage.py check
- If it works, the terminal will output:
System check identified no issues (0 silenced).
- Failure to pass this check means that pip, python, or Django may be the wrong version.
- Once no issues have been detected, run:
python3 manage.py runserver
- An IP address should appear. Click on that IP address to interact with the website.
ex. http://147.222.165.81:8080/
If you want to host the website locally on your computer, you'll need to install MySQL and follow this guide.
-
When we first tried to install the repository, we this error:
mysqlclient 1.3.13 or newer is required; you have 0.9.3
- We solved this by going back to a previous version of Django:
pip install Django==2.1.7
- Another solution can be found here which involves going through files of a Python library and modifying a piece of code.
- We solved this by going back to a previous version of Django:
-
If
python3
orpip3
doesn't work for Conda, usepython
orpip
. You can also check the version of Python running by just enteringpython
orpython3
into the terminal.