Skip to content

koji/api-for-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api-for-simulator

api server for opentrons-simulator

how to run locally

pip install -r requirements.txt

cd app
uvicorn main:app --reload

docs

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.

How to run the server with Dockerfile

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

Tool

About

api server for opentrons-simulator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published