ESS data application
This project aims to build a web application using the FastAPI framework to interface with KBase, ESGF, and ARM, allowing retrieval and saving of data objects.
OpenAPI documentation is provided at the /docs
endpoint of the server,
and error codes are listed in errors.py.
Python 3.10 must be installed on the system to run the tests.
Run the following commands to execute the tests:
pipenv sync --dev # only the first time or when Pipfile.lock changes
pipenv shell
PYTHONPATH=. pytest test
The server can be run locally using Docker:
docker-compose build
docker-compose up
docker build -t dataverse .
docker stop dataverse; docker rm dataverse
docker run -d --name dataverse \
-p 30015:8000 dataverse
The application can then be accessed at http://localhost:30015/docs.