Backend for Co-Calibration Demonstrator at FB 9.4
This work is part of the showroom for "Metrology for Digitalization" which is created by department 9.4 at the Physikalisch-Technische Bundesanstalt.
Run the backend
You can either start up the docker image:
# if run behind a proxy, check `/etc/systemd/system/docker.service.d/http-proxy.conf` for config
# build image
docker build -t backend_image .
# create+start container from image
docker run -d --name cocal_backend -p 8000:80 backend_image
# stop container
docker stop cocal_backend
# restart container
docker start cocal_backend
# remove container
docker rm cocal_backend
Or setup a python environment and directly run
uvicorn app.main:app --reload
API documentation
The API is documented automatically at http://127.0.0.1:8000/docs
This should look like:
Authors
- Maximilian Gruber
Useful commands
interactive shell inside running container:
docker exec -it cocalibration_networking_layer-backend-1 /bin/bash
copy files from container to host:
docker cp cocalibration_networking_layer-backend-1:/code/sql_app.db ~/Desktop/inspection
docker cp cocalibration_networking_layer-backend-1:/code/sessions/ ~/Desktop/inspection