6. Up and running with Linux based installation - NCBI-Codeathons/Use-UMLS-and-Python-to-classify-website-visitor-queries-into-measurable-categories GitHub Wiki
(Optional - not part of MVP.)
The test environment that was used
Anaconda is more than is needed, but was used here to update the code. - Dan
- Ubuntu 18.04
- Anaconda-Distribution. Includes Pandas, matplotlib, Flask,. etc. Other packages must be installed:
- https://anaconda.org/anaconda/virtualenv, conda install -c anaconda virtualenv
- https://anaconda.org/anaconda/requests, conda install -c anaconda requests
To start Anaconda Navigator, I have needed to run this from Terminal every time I log in:
source ~/anaconda3/bin/activate root
anaconda-navigator
Installation
Install git and clone the repo:
sudo apt-get install git-core
git clone git://github.com/NCBI-Codeathons/Use-UMLS-and-Python-to-classify-website-visitor-queries-into-measurable-categories
Install Java JDK, if needed. To see if it's already installed,
java -version
If needed
sudo apt install default-jdk
Verify that the java compiler is there,
javac -version
Go into the repo. Run once,
cd Projects/Use-UMLS-and-Python-to-classify-website-visitor-queries-into-measurable-categories
./build.sh
Set UMLS_EMAIL environment variables using your UMLS license information,
export UMLS_EMAIL=YourRegisteredUmlsEmailAddress
export UMLS_USERNAME=YourRegisteredUmlsUserName
export UMLS_PASSWORD=YourRegisteredUmlsPwd
How to run the app
cd Projects/Use-UMLS-and-Python-to-classify-website-visitor-queries-into-measurable-categories
./run_backend_locally.sh
In your browser go to http://localhost:8080/
You can update the HTML by editing the files in /backend/templates/.
The response data is stored in /job_output/.