Once deployed (via GitHub pages), my personal website can be found here: https://alexander-mead.github.io./
Go to the function directory:
cd functions/mandelbrotFirst, install the poetry environment:
poetry installInstall the Fortran part of the backend
cd Fortran
poetry run sh f2py.sh
cd ..Run the test script:
poetry run python mandelbrot.pyAn image of the Mandelbrot set should appear.
For a local or coloud deployment use the deployment script:
./scripts/deploy.shIf a deployment is running, try the API invocation script:
./scripts/test.shsome gibberish (which is the image in a weird format) should be displayed on the terminal.
Return to the root directory
cd ../..Go to the function directory:
cd functions/nbodyFirst, install the poetry environment:
poetry installEnsure that the twinLab model (if this is being used) is trained:
poetry run python training.pyRun the test scripts:
poetry run python nbody.pyan image of a slice through an N-body simulation should appear.
To deploy
./scripts/deploy.shIf a deployment is running, try the API invocation script:
./scripts/test.shsome gibberish (which is the image in a weird format) should be displayed on the terminal.
Return to the root directory
cd ../..If there are any problems with deployment, try looking in the following files:
functions/*/samconfig.tomlfunctions/*/template(.base).yaml(ensure the architecture matches)functions/*/Dockerfile
Otherwise, try restarting Docker and/or purging the current set of containers.