Frontend program predicting stereotactic targets from inputed anatomical fiducials for brain imaging applications
This application is currently in development
To run the development environment:
- Git clone the stareotactic_target_pred repository
https://github.com/mackenziesnyder/stereotactic-target-pred.git - Set up python backend via
poetry shell - Install the required libraries via
poetry install - Change directory to
stereotactic_target_pred/backend - In stereotactic-target-pred/stereotactic_target_pred/backend/utils.py comment line 33 and uncomment line 32
- Run the backend with
python3 -m flask --app connector.py run --debug - Set up the frontend with
cd stereotactic_target_pred/frontend - In stereotactic-target-pred/stereotactic_target_pred/frontend/src/env.jsx comment line 9 and uncomment line 3
- Use the latest version of node with
nvm use --lts - Install the required libraries via
npm install - Build the frontend with
npm run build - Run the frontend with
npm run dev
Note: Before pushing code to the main branch, be sure to change back the lines commented for development in stereotactic-target-pred/stereotactic_target_pred/backend/utils.py and in stereotactic-target-pred/stereotactic_target_pred/frontend/src/env.jsx from the instructions above
To run in build environment locally
- To build the frontend run
npm run build. poetry run gunicorn -w 4 -b 127.0.0.1:5001 connector:app