charlesonunze / grpc-nats-envoy

json to rpc example with envoy, go, grpc, nats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grpc-nats-envoy

json to rpc example with envoy, go, grpc, redis

This repo is a mirror of https://github.com/charlesonunze/grpc-redis-envoy-example

It replaces redis with nats

Run

Make sure you have docker installed locally

Run the services

  docker-compose up --build

Testing

POST http://localhost:1337/user/login

body {"name": "John" }

.

POST http://localhost:1337/user/balance

body {"token": "token gotten from the login" }

.

POST http://localhost:1337/transactions/up

body {"amount": 200, "token": "token gotten from the login" }

.

POST http://localhost:1337/transactions/down

body {"amount": 700, "token": "token gotten from the login" }

About

json to rpc example with envoy, go, grpc, nats


Languages

Language:Go 98.5%Language:Dockerfile 1.5%