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

Add web frontend to hello-world example #8

Merged
merged 4 commits into from
Oct 3, 2023
Merged

Conversation

rileysdev
Copy link
Contributor

@rileysdev rileysdev commented Sep 29, 2023

This PR adds a web frontend to hello world.

I've made a few changes to the hello-world service. We now have:

  • Greetings. A readers. All past greetings.
  • Greet. A writer. Which adds a greeting to the list of greetings.

Running rsm protoc will create some files we don't actually need, e.g. react ts bindings for option.proto. Thoese files have been removed for source control, for now. I'm happy to add them back if anyone objects.

Completes #1914

IMPORTANTLY: symlinking in the api files did not work. Copying them in did. We should restart the discussion of having rsm protoc output those files directly to both top level /api and /web/src/api.

I discovered #1912 as part of this PR.

@rileysdev rileysdev changed the title Riley.hello world web Add web frontend to hello-world example Sep 29, 2023
@rileysdev rileysdev changed the base branch from main to benh/resemble-examples-use-rsmrc September 29, 2023 19:22
@rileysdev rileysdev force-pushed the riley.hello-world-web branch 2 times, most recently from 66c5564 to 963d7a7 Compare September 29, 2023 20:42
@rileysdev rileysdev marked this pull request as ready for review September 29, 2023 20:46
@rileysdev rileysdev requested review from rjhuijsman and benh and removed request for rjhuijsman September 29, 2023 21:23
@rileysdev rileysdev self-assigned this Sep 29, 2023
.rsmrc Outdated Show resolved Hide resolved
api/google/protobuf/descriptor_rsm.py Outdated Show resolved Hide resolved
api/hello_world/v1/greeter.proto Show resolved Hide resolved
}

message GreetResponse {
string message = 1; // E.g. "Hello, World!".
string greeting = 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't really see the purpose of Greet returning the same greeting that was sent in the request? Can we just remove this field from the response?

Copy link
Contributor

Choose a reason for hiding this comment

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

@sp33drac3r it seems like the comments in this file were resolved, but the changes weren't made? How come?

hello-world/backend/src/greeter_servicer.py Show resolved Hide resolved
hello-world/backend/src/main.py Outdated Show resolved Hide resolved
hello-world/web/src/App.tsx Outdated Show resolved Hide resolved
hello-world/web/src/App.tsx Outdated Show resolved Hide resolved
hello-world/web/src/index.tsx Outdated Show resolved Hide resolved
@aviator-app
Copy link

aviator-app bot commented Oct 2, 2023

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes.
Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

This PR was merged using Aviator.


See the real-time status of this PR on the Aviator webapp.

@benh benh force-pushed the benh/resemble-examples-use-rsmrc branch from fb1030d to 650f685 Compare October 2, 2023 18:41
@rileysdev rileysdev force-pushed the riley.hello-world-web branch from 08aae14 to 4c8ac71 Compare October 2, 2023 18:47
hello-world/web/src/App.tsx Outdated Show resolved Hide resolved
hello-world/web/src/App.tsx Outdated Show resolved Hide resolved
hello-world/web/src/App.tsx Outdated Show resolved Hide resolved
Base automatically changed from benh/resemble-examples-use-rsmrc to main October 2, 2023 20:17
@rileysdev rileysdev force-pushed the riley.hello-world-web branch 5 times, most recently from 053b61f to 2cef098 Compare October 3, 2023 00:49
@rileysdev rileysdev force-pushed the riley.hello-world-web branch from 2cef098 to a73bc25 Compare October 3, 2023 00:50
@aviator-app aviator-app bot merged commit a4608df into main Oct 3, 2023
2 checks passed
@aviator-app aviator-app bot deleted the riley.hello-world-web branch October 3, 2023 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants