Quick Start
Prerequisites
-
Git distributed version control software.
For instration instructions, see Git’s Installation guide.
-
Go any one of the three latest major releases of Go.
For instration instructions, see Go’s download and install document.
-
clang-format code formatter.
Grab the clang-format through the OS package manager and rename it to
clang-format-12
as blow:$ ln -s $(which clang-format) $(dirname $(which clang-format))/clang-format-12
Get the example code
The example code is part of the goten repo.
-
Close the repo:
$ git clone https://github.com/cloudwan/goten
-
Change to the top directory and install Protocol buffer compiler,
protoc
, version 3, Go plug-ins for the protocol compiler, and JavaScript packages with install-proto-deps.sh script:$ cd goten $ ./scripts/install-proto-deps.sh
-
Change to the quick start example directory:
$ cd example/helloworld
Run the example
From the example/helloworld
directory:
-
Compile and execute the server code:
$ go run cmd/greeter_server/main.go
-
From a different terminal, compile and execute the client code to see the client output:
$ go run cmd/greeter_client/main.go -name Goten Greeting: Hello Goten
Congratulations! You’ve just run a client-server application with Goten.
What’s Next
- SPEKTRA Edge architecture.
- SPEKTRA Edge service APIs.
- SPEKTRA Edge third-party service developer guide.