Table of Contents
This is a minimalistic website for showcasing MontyCarlo in the 4th European Congress of Medical Physics.
To get a local copy up and running follow these simple example steps.
- Docker
- Clone the repository and cd into it;
git clone git@github.com:RuiFilipeCampos/monty-mvp.git
cd monty-mvp
- Docker compose it
docker-compose up
- /simple_sphere/ - frontend page: performs GET /sphere/ on backend, graphs the result (graph takes a while to load, wait for it)
- /sphere/ - frontend page: performs POST /sphere/ on backend with parameters as payload
- /onion/
- /cut-sphere/
To get a copy for local development up and running follow these simple example steps.
- yarn
- poetry
- docker
Start by cloning the repository
git clone git@github.com:RuiFilipeCampos/monty-mvp.git
cd monty-mvp
- Install client side packages
cd client
yarn
- Start the development server
yarn dev
This will get the frontend up and running on port localhost:8000 and on port 8000 of your local network.
- Perform the first docker build. This will take a while the first time, but is instantaneous afterwards(just make sure not to change the generate_materials.py file).
cd server
docker build . -t monty-mvp:server
- Start a container with this image, map its 0.0.0.0:8000 to your localhost:8000
docker run -itp 8000:8000 monty-mvp:server
Rui Campos - mail@ruicampos.org
Project Link: https://github.com/RuiFilipeCampos/monty-mvp