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

feat: add guide to deploying a real-time app with ppg #6591

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

ankur-arch
Copy link
Contributor

Closes DA-2265

@ankur-arch ankur-arch self-assigned this Jan 12, 2025
Copy link
Contributor

Dangerous URL check

Absolute URLs

The following files have absolute URLs to prisma.io/docs. Please replace them with relative URLs.
Example: https://www.prisma.io/docs/getting-started/quickstart -> /getting-started/quickstart
content/800-guides/1200-prisma-postgres-realtime-on-cloudflare.mdx

No local URLs found.

Copy link
Contributor

Redirect check

This PR probably requires the following redirects to be added to static/_redirects:

  • This PR does not change any pages in a way that would require a redirect.

Copy link

cloudflare-workers-and-pages bot commented Jan 12, 2025

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0493ea8
Status: ✅  Deploy successful!
Preview URL: https://0a200247.docs-51g.pages.dev
Branch Preview URL: https://da-2265.docs-51g.pages.dev

View logs

Copy link
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 20.6%, saving 70.43 KB.

Filename Before After Improvement Visual comparison
static/img/guides/realtime-app-with-ppg.png 342.19 KB 271.76 KB -20.6% View diff

168 images did not require optimisation.

Copy link
Member

@nikolasburk nikolasburk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great guide 💯 a few notes (I added these as direct comments/suggestions as well but want to emphasize them as top-level feedback too):

  • when you use "sub-steps", please prefix the step with the current "top-level" step (see my comments in sections 3, 4 and 5)
  • please make sure to keep indentation of code blocks in lists at 2 or 4 spaces (two should normally be enough actually)
  • the real-time functionality didn't work for me; I added a Loom video with a demo in a comment

Comment on lines +363 to +365
Visit `https://localhost:8787` to see your app in action. You should see a form where, if you input data, the scatter plot updates in real time:

![An demo of the app we built where a scatter plot updates in real-time](/img/guides/realtime-app-demo-ppg-cf-workers.gif)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't seem to get any real-time updates here... points get stored in the DB but nothing updates in real-time.

https://www.loom.com/share/917a08035f1743e0b202e2dea8ef924a?sid=d35278fe-6eb0-4255-916b-eff7fcf1d647

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants