Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Counter app in Burr demo #69

Open
elijahbenizzy opened this issue Mar 13, 2024 · 4 comments
Open

Counter app in Burr demo #69

elijahbenizzy opened this issue Mar 13, 2024 · 4 comments
Labels
examples Relates to `/examples` good first issue Good for newcomers ui

Comments

@elijahbenizzy
Copy link
Contributor

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

@elijahbenizzy elijahbenizzy added the good first issue Good for newcomers label Mar 13, 2024
@skrawcz
Copy link
Contributor

skrawcz commented Jul 18, 2024

Task:

  • implement demo application that can load when user runs the burr service

What to use:

@skrawcz skrawcz added examples Relates to `/examples` ui labels Jul 18, 2024
@Dipec001
Copy link

Hello. Please assign it to me

@elijahbenizzy
Copy link
Contributor Author

Hello. Please assign it to me

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

@elijahbenizzy
Copy link
Contributor Author

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
    streaming_chatbot = importlib.import_module("burr.examples.streaming-fastapi.server")
  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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Relates to `/examples` good first issue Good for newcomers ui
Projects
None yet
Development

No branches or pull requests

3 participants