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

docs: Revamp quickstart for wash dev #648

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

ericgregory
Copy link
Contributor

WIP

Signed-off-by: Eric Gregory <eric@cosmonic.com>
Copy link

netlify bot commented Oct 15, 2024

Deploy Preview for dreamy-golick-5f201e ready!

Name Link
🔨 Latest commit 36c4d6f
🔍 Latest deploy log https://app.netlify.com/sites/dreamy-golick-5f201e/deploys/67126e747e39fd00085044d8
😎 Deploy Preview https://deploy-preview-648--dreamy-golick-5f201e.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Signed-off-by: Eric Gregory <eric@cosmonic.com>
Copy link
Member

@brooksmtownsend brooksmtownsend left a comment

Choose a reason for hiding this comment

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

I have one or two nits, and then one big idea for the second page that I think we can really nail. All of this is a wholesale improvement over today, and I think it could even go in as-is.

I want to make sure we don't hold the great improvements here in favor of getting everything perfect, we can refine slowly 😄

docs/tour/hello-world.mdx Outdated Show resolved Hide resolved
docs/tour/hello-world.mdx Outdated Show resolved Hide resolved
docs/tour/hello-world.mdx Show resolved Hide resolved
docs/tour/hello-world.mdx Outdated Show resolved Hide resolved
docs/tour/adding-capabilities.mdx Outdated Show resolved Hide resolved
Comment on lines 29 to 31
Let's extend this application to do more than just say "Hello!"

Using the `path_with_query` method on the incoming request, we can check the request for a name provided in a query string, and then return a greeting with that name. If there isn't one or the path isn't in the format we expect, we'll default to saying "Hello, World!"
Copy link
Member

Choose a reason for hiding this comment

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

Honestly, I would just skip this part entirely in the quickstart. We made the change to the code in the first bit, now we can get onto capabilities.

I do like your suggestion for generating bindings for Python, though, that still is nice to have

Copy link
Member

Choose a reason for hiding this comment

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

This can be done here or as a followup, good either way


To further enhance our application, let's add persistent storage to keep a record of each person that this application greeted. We'll use the key-value store provider for this, and just like HTTP server, you won't need to pick a library or a specific vendor implementation yet. You'll just need to add the appropriate interface to your component, and then you can pick a provider at runtime.
Now let's add persistent storage to keep a record of each person that this application greeted.
Copy link
Member

Choose a reason for hiding this comment

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

For this one, if you take my suggestion to not do the path/query parsing, I think we can just take the path with query as is (e.g. like the keyvalue counter)

So curl localhost:8000/howdy would say something like "Request count /howdy: 3"

Just looking for ways to simplify!

Copy link
Member

Choose a reason for hiding this comment

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

This can be done here or as a followup, good either way

docs/tour/adding-capabilities.mdx Outdated Show resolved Hide resolved
ericgregory and others added 5 commits October 17, 2024 15:08
Co-authored-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Eric Gregory <eric@cosmonic.com>
Co-authored-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Eric Gregory <eric@cosmonic.com>
Co-authored-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Eric Gregory <eric@cosmonic.com>
Signed-off-by: Eric Gregory <eric@cosmonic.com>
Signed-off-by: Eric Gregory <eric@cosmonic.com>
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