This is a webapp built for serving an easy-to-use UI for the MirMachine lookup/annotation tool (see MirMachine)
Firstly make sure you have the correct conda installed on your computer.
To install the project run conda env create -n mirmachine -f environment.yml
in the root folder.
Then run conda activate mirmachine
to spawn the virtual environment.
Now you are ready to start Django.
P.S. if you want to exit the environment type conda deactivate
In the virtual environment you can run the following:
Run this script in the root folder of the project.
This refreshes Django with potential changes that may be present in the backend.
This should be done after the initial download, and after there are changes made
in the backend.
Use this script to run the server.
Make sure you build the frontend before running the server.
Navigate to lookupService/frontend
before using the following scripts.
If you require hot reloading we recommend using a separate
shell to build the frontend.
Run npm install
before running for the first time to install the necessary packages and set up the environment.
Runs the app in the development mode.
Enables hot reloading, making it the best choice when making changes to the frontend.
Run the Django server and open http://localhost:8000 to view it in the browser.
The page will update if you make edits. Simply reload to display changes.
Builds the app for production to the lookupService/static/frontend
folder.
Webpack bundles the project and optimizes it for production.