After cloning this repository, build the jpsurv development image (cbiitss/jpsurv:dev
):
npm run build:image
To start the development server on Linux/macOS, use:
npm run start:dev
To start the development server on Windows, run the following in a non-powershell command prompt:
npm run start:msdev
After starting the container, JPSurv should be available at: http://localhost:9000/jpsurv.
- docker ps
- To find the running container
- docker logs -f CONTAINER
- Shows the log output
- docker restart CONTAINER
- Restart the container.
- WARNING!!! Always restart after making a change to the R and Python code.
- If you need to inspect the source for the JPSurv R package, extract the
r-packages/JPSurv_R_package.tar.gz
file (in the docker directory, runtar -xvf JPSurv_R_package.tar.gz
) - Open JPSurvWrapper.R (if RStudio has the proper file associations, you can just click on the file)
- Source File (click source button) to run all the functions contained in the file.
- You cannot debug the R code from your browser. You must change the code, then restart the docker container (see above) to see your changes.
- ggplot2
- ggrepel
- Python Flask
- rjson
- R
- R Studio
- jpsurv R package