This project demonstrates using Swagger UI bindings in Golem with a single binary approach.
- Download the
golembinary from theopenapibranch of golem-cli.
-
Start the Golem server:
golem server run
-
Deploy the applications:
- Navigate to each app folder (e.g.,
shopping-cart/,todo-list/) - Run:
golem app deploy
- Navigate to each app folder (e.g.,
-
Access Swagger UI:
- After deployment, you can access the Swagger UI for each app at the endpoints listed below.
API:
shopping-cart/0.0.1- localhost:9006/v0.0.1/swagger-shopping-cart
APIs:
todo-list1/0.0.1todo-list2/0.0.2simple-todo-list/0.0.1
APIs:
llm/0.0.1
#Setup for LLM
- LLM test component is from golem-llm, LLM expects the wasm files to be under folder components/debug or components/release
- You would have to pre-create the worker with the environmental variable, with worker name being test-llm