api server for opentrons-simulator
pip install -r requirements.txt
cd app
uvicorn main:app --reload
uvicorn main:app
Then go to http://localhost:8000/docs to check the api doc.
/protocol/id
does not work since it is a dummy function right now.
git clone https://github.com/koji/api-for-simulator.git
cd api-for-simulator
docker build -t simulator-api:1.0.0 .
After building the image
docker run -d --name simulator-api-container -p 80:80 simulator-api:1.0.0
Check the container
docker ps -q -f "name=simulator-api-container" | xargs docker logs -f
Test the api server with curl or postman/httpie
curl localhost:80
-
postman: https://www.postman.com/
-
httpie: https://httpie.io/
-
orbstack https://orbstack.dev/
A GUI app for Docker which is better than Docker Desktop