Skip to content

adventures-in/grpc_analysis_server

Repository files navigation

grpc_analysis_server

The Dart analysis server on Cloud Run via gRPC.

Project Notes

First step:

Review Metrics

Metrics – Cloud Run – coder-up

Run locally as a command line app

Start the server:

$ dart bin/server.dart

Likewise, to run the client:

$ dart bin/client.dart

Run locally in a (simulated) hosted environment

Use the Docker extension to build and run a container

Or for command line wizards
docker build -t web_socket_analysis_server_image .
docker run -it -p 8080:8080 --name web_socket_analysis_server web_socket_analysis_server_image

Clean up:

docker rm -f web_socket_analysis_server        # remove the container
docker image rm web_socket_analysis_server_image   # remove the image

Regenerate the stubs

If you have made changes to the message or service definition in protos/helloworld.proto and need to regenerate the corresponding Dart files, you will need to have protoc version 3.0.0 or higher and the Dart protoc plugin version 0.7.9 or higher on your PATH.

To install protoc, see the instructions on the Protocol Buffers website.

The easiest way to get the Dart protoc plugin is by running

$ pub global activate protoc_plugin

and follow the directions to add ~/.pub-cache/bin to your PATH, if you haven't already done so.

You can now regenerate the Dart files by running

$ protoc --dart_out=grpc:lib/src/generated -Iprotos protos/helloworld.proto

About

The Dart analysis server on Cloud Run via gRPC.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published