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: add new quickstart for customer registry in javascript #379

Merged

Conversation

pvlugter
Copy link
Member

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.

@github-actions github-actions bot added Documentation Improvements or additions to documentation javascript-sdk kalix-runtime Runtime and SDKs sub-team labels Jun 29, 2022
Comment on lines +4 to +5
# test quickstarts without lock file
/package-lock.json
Copy link
Member Author

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.

Comment on lines +70 to +71
rpc ChangeName(ChangeNameRequest) returns (google.protobuf.Empty) {}
rpc ChangeAddress(ChangeAddressRequest) returns (google.protobuf.Empty) {}
Copy link
Member Author

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.

@pvlugter pvlugter force-pushed the js-customer-registry-quickstart branch from e92436d to 1a6d02f Compare June 29, 2022 06:55
Copy link
Contributor

@johanandren johanandren left a comment

Choose a reason for hiding this comment

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

LGTM!

@johanandren johanandren merged commit a6ece0c into lightbend:main Jun 29, 2022
Comment on lines +56 to +62
option (kalix.codegen) = {
value_entity: {
name: "customer.domain.Customer"
entity_type: "customers"
state: "customer.domain.CustomerState"
}
};
Copy link
Member Author

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.

@pvlugter pvlugter deleted the js-customer-registry-quickstart branch June 29, 2022 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation javascript-sdk kalix-runtime Runtime and SDKs sub-team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants