Skip to content

nats-rpc/elm-nrpc

Repository files navigation

Elm NRPC

Elm NRPC is a NRPC client for the elm language.

It provides a Elm library that implements the NRPC calling patterns, and a protoc plugin for generating Elm source code from a .proto file.

It relies on elm-nats for handling the NATS protocol, eriktim/elm-protocol-buffers and the protoc-gen-elm generated files for handling the protobuf encoding/decoding.

The 'examples/alloptions' application demonstrate all the features, it is probably a good idea to have look.

Install protoc-gen-elm-nrpc

npm install -g protoc-gen-elm-nrpc

Compile the .proto files

NO_GRPC=true protoc \
    -I <include-path> \
    --elm_out "excludeFile=google/protobuf/descriptor.proto:src/" \
    --elm-nrpc_out "src/" \
    --plugin "protoc-gen-elm-nrpc=elm-nrpc/protoc-gen-elm-nrpc/index.js" \
	file.proto

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages