burr
burr copied to clipboard
Counter app in Burr demo
Got lazy and decided not to implement. Should be pretty straightforward, follow the GPT-like example.
Task:
- implement demo application that can load when user runs the burr service
What to use:
- Counter application - https://github.com/DAGWorks-Inc/burr/blob/main/examples/hello-world-counter/application.py
- The roughly follow https://github.com/DAGWorks-Inc/burr/pull/68 (i.e. this file burr/tracking/server/examples/chatbot.py, that is then used here) for how to integrate it with the Burr UI
Hello. Please assign it to me
Hello. Please assign it to me
@Dipec001 assigned! Going to respond in a minute with directions on what to do
Hey @Dipec001! Some guidance here (responding as well to the discord note you left, sorry it's been a busy day):
- Familiarize yourself with the example of the counter app
- Create a server that can run inside the counter app -- start from this server, and change the endpoints to interact with the counter.
a. Decide on the right API design for this -- what should the endpoints be? Probably: (1)
create appand (2)count, which will then spit out the number b. Implement the endpoints c. Ensure it returns the appropriate pydantic models - Add another import following this guideline https://github.com/DAGWorks-Inc/burr/blob/253a03d972b912bb95b25a92c8137f7988696807/burr/tracking/server/run.py#L44
- Integrate to the server by auto-generating the code
- Implement a react component here
a. Regenerate from a running burr server
npx openapi-typescript-codegen --input http://localhost:7241/openapi.json --output ./src/api-- from thetelemetry/uidirectory, withburrrunning
b. Implement a UI -- querying the endpoints you created c. Test it out!