Skip to content

kenota/grpc-elm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Type Safe api between golang and ELM without writing decoders

This repository contains code to demonstrate how type safe API can be created using Go with client library for ELM without writing any decoding/network code.

This is the code I demonstrated on the London Elm Meetup lightning talk called "Typesafe all the way". Talk slides are available here

Running example

Requriements

Instructions

  1. Clone the code git clone https://github.com/kenota/grpc-elm.git
  2. Run dep ensure
  3. Run ./build.sh this will generate 3 things:
    1. Golang server/client stubs in proto/gen/golang
    2. Openapi V2 definitions in proto/gen/swagger
    3. ELM client library & decoders in proto/gen/elm
  4. In terminal run go run main.go
  5. Open another terminal, go to frontend folder and run elm reactor
  6. Open http://localhost:8000

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published