# README
Reverser
This directory contains a Service Weaver web application that reverses text.
The application has a main component and a Reverser
component.
%%{init: {"flowchart": {"defaultRenderer": "elk"}} }%%
graph TD
%% Nodes.
github.com/ServiceWeaver/weaver/Main(weaver.Main)
github.com/ServiceWeaver/weaver/examples/reverser/Reverser(reverser.Reverser)
%% Edges.
github.com/ServiceWeaver/weaver/Main --> github.com/ServiceWeaver/weaver/examples/reverser/Reverser
How to run?
To run this application locally in a single process, run go run .
To run the
application locally across multiple processes, use weaver multi deploy
.
$ go run . # Run in a single process.
$ weaver multi deploy weaver.toml # Run in multiple processes.
How to interact with the application?
If running locally, open localhost:9000
in a browser. You can also curl the
/reverse
endpoint directly.
$ curl localhost:9000/reverse?s=foo
oof
TODO(mwhittaker): Run on GKE.
# Interfaces
Reverser component.