Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

iwaltgen/grpc-go-web-todo

Repository files navigation

gRPC-Go-Web-TODO

Interactive TODO App powered by the gRPC-WEB server stream.

    +----------Browser----------+                 +----------Backend----------+
    |                           |                 |                           |
    |                           |                 |    static file serving    |
    |                           |                 |                           |
    |         gRPC-Web          | <-- HTTP/2 -->  | gRPC-Web in-process-proxy |
    |                           |                 |                           |
    |                           |                 |          gRPC-go          |
    |                           |                 |                           |
    +---------------------------+                 +---------------------------+

Prerequisites

Development

# on macOS
brew install mkcert

# root CA install
mkcert -install

# install package & tool
mage install

# generate api & code
mage gen

# livereload development
mage dev

# build & embedding for a single binary
mage build