https://github.com/awtkns/bdc
STEM Fellowship Big Data Challenge 2020: Using big data to analyse the effectiveness of diagnostic and treatment modalities for breast and prostate cancer in countries with variable levels of development.
https://github.com/awtkns/bdc
Last synced: 4 months ago
JSON representation
STEM Fellowship Big Data Challenge 2020: Using big data to analyse the effectiveness of diagnostic and treatment modalities for breast and prostate cancer in countries with variable levels of development.
- Host: GitHub
- URL: https://github.com/awtkns/bdc
- Owner: awtkns
- Created: 2020-05-23T03:54:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-10T19:18:07.000Z (over 4 years ago)
- Last Synced: 2025-01-01T16:22:20.316Z (11 months ago)
- Language: Jupyter Notebook
- Homepage: https://bdc.wtkns.dev
- Size: 20.8 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BDC 2020


Use conda to install requirements.
```
conda env create -f env.yml
conda activate bdc
```
## Build and Run Backend
Make sure you are in your bdc conda env, or have installed the requirements with pip. First set some environment variables.
```bash
# linux
$ export FLASK_ENV=development
# windows
$ set FLASK_ENV=development
```
Now run the backend server.
```bash
$ cd backend
$ flask run
```
## Build and Run Frontend
Make sure you have NodeJs 14.3.0 (12.16.3 should also work). If you installed the conda env then you have already installed nodejs.
```bash
$ cd frontend
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
```
## Deployment
The frontend is automatically built and served after every push to master. It can be found [here](bdc-theta.now.sh).
Currently the backend is being hosted on a google compute engine server. To update the app make sure you have access to the server.
To update and start the backend.
```bash
$ cd /home/bdc
$ sudo git pull
$ sudo docker-compose up --build -d
```