A web API for the RamanChada 2 Raman spectroscopy harmonisation library, incorporating the AMBIT/eNanoMapper data model.
Install Poetry, then run:
poetry install
poetry run dev
poetry shell
Exit with exit or Ctrl-D.
poetry add <pkgname>
poetry run pytest
To update the dependencies to compatible versions per pyproject.toml specifications:
poetry update
Note that this does not update the submodules: see below how to update them.
docker build -t ramanchada-api:latest .
docker run -it --rm -p 127.0.0.1:8000:80 ramanchada-api
Add and commit or stash any uncommitted changes, then run:
git submodule update --remote
poetry lock --no-update
git add extern poetry.lock
git commit -m "Pull the latest commit for the submodules"
git push
uvicorn src.rcapi.main:app --reload
🇪🇺 This project has received funding from the European Union’s Horizon 2020 research and innovation program under grant agreements 952921 and 964766.