burr icon indicating copy to clipboard operation
burr copied to clipboard

Counter app in Burr demo

Open elijahbenizzy opened this issue 1 year ago • 4 comments

Got lazy and decided not to implement. Should be pretty straightforward, follow the GPT-like example.

elijahbenizzy avatar Mar 13 '24 20:03 elijahbenizzy

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

skrawcz avatar Jul 18 '24 21:07 skrawcz

Hello. Please assign it to me

Dipec001 avatar Oct 17 '24 07:10 Dipec001

Hello. Please assign it to me

@Dipec001 assigned! Going to respond in a minute with directions on what to do

elijahbenizzy avatar Oct 17 '24 16:10 elijahbenizzy

Hey @Dipec001! Some guidance here (responding as well to the discord note you left, sorry it's been a busy day):

  1. Familiarize yourself with the example of the counter app
  2. 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 app and (2) count, which will then spit out the number b. Implement the endpoints c. Ensure it returns the appropriate pydantic models
  3. Add another import following this guideline https://github.com/DAGWorks-Inc/burr/blob/253a03d972b912bb95b25a92c8137f7988696807/burr/tracking/server/run.py#L44
  4. Integrate to the server by auto-generating the code
  5. 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 the telemetry/ui directory, with burr running
    b. Implement a UI -- querying the endpoints you created c. Test it out!

elijahbenizzy avatar Oct 17 '24 22:10 elijahbenizzy