-
Notifications
You must be signed in to change notification settings - Fork 21
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: add new quickstart for customer registry in javascript #379
docs: add new quickstart for customer registry in javascript #379
Conversation
# test quickstarts without lock file | ||
/package-lock.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not committing the package lock file for this sample, so that testing is similar to user download.
rpc ChangeName(ChangeNameRequest) returns (google.protobuf.Empty) {} | ||
rpc ChangeAddress(ChangeAddressRequest) returns (google.protobuf.Empty) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has the name and address changing methods, like for the Java/Scala versions, but these are not included in the quickstart guide in the docs.
e92436d
to
1a6d02f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
option (kalix.codegen) = { | ||
value_entity: { | ||
name: "customer.domain.Customer" | ||
entity_type: "customers" | ||
state: "customer.domain.CustomerState" | ||
} | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also using the new codegen annotation now.
The current customer registry sample includes more than needed for the quickstart (has both value entity and event sourced entity versions) and is not set up for being a usable and runnable download. The quickstart docs for this sample (currently in the main docs) are outdated, use line numbers for code samples, and don't use the codegen.
Update things in line with the customer registry quickstarts for JVM SDKs.
Create a new version of the customer registry sample for the quickstart, based on the template and using codegen, with tests, and its own quickstart-friendly README. The quickstart bundle is tested in CI. This is a new customer registry sample, with the old one unchanged (still referenced by the main docs), and the old sample can be updated later (like in the JVM SDKs).
Add a new quickstart guide to the docs here, updated to use the basic template and codegen. The one in the main docs can be replaced once this is published.
Once reviewed, a TypeScript version can be added. The other quickstart (shopping cart) is being updated in https://github.com/lightbend/kalix-docs/pull/1402, which can also be moved here and its quickstart download updated.