- The
.streamlitfolder: contains the Streamlit configuration file including the theme. - The
.githubfolder: contains instructions regarding the CI/CD process. - The
srcfolder: contains the main code in python (the soul of our Streamlit app, what it displays, how it reacts to user input...) - The
assetsfolder: contains images necessary for the app frontend. - The
datafolder: contains the model serialization - The
docsfolder: contains the necessary files to generate the documentation
Important: in order to be able to properly run the web app, one must
ensure it exists the .credentials hidden file in the backend/app
subdirectory. If you don't have the file, please refer to @gcastro-98
as database's administrator.
We can locally test our web application by creating docker image and launching the corresponding docker container through the following command:
docker-compose up --force-recreate --no-deps --buildAlternatively, we can run it without docker if we have installed the requirements in a conda environment using:
pip install -r requirements.txtAnd then, executing the web app using:
make runFirst we need to have a conda environment in which install all the
necessary packages to 'compile' the src code, by typing:
pip install -r requirements.txtAfterwards, the necessary packages to generate the documentation must be installed as:
conda install -c anaconda sphinx numpydoc sphinx_rtd_theme recommonmark -y
conda install -c anaconda python-graphviz openpyxl -y
pip install --upgrade myst-parserAlso, in the docs folder, there must exist a copy of the data folder,
as well as the same .credentials file in the docs/src subdirectory.
Finally, we simply type:
sphinx-build docs/src docs/buildor equivalently:
make htmlThen, opening the vortexpy/docs/build/index.html file in the browser
will display the generated documentation.