1414 * [ Start in docker] ( #start-in-docker )
1515- [ Getting started] ( #getting-started )
1616 * [ Jaeger] ( #jaeger )
17- * [ Oauth2 client] ( #oauth2-client )
1817 * [ Http with gRPC] ( #http-example-with-grpc )
1918 * [ Graphql with gRPC] ( #graphql-example-with-grpc )
2019- [ Deprecate version] ( #deprecated-version )
@@ -27,9 +26,8 @@ Commands list:
27261 . Daemon - main service
28272 . Product service - service that returns Product, an example of gRPC client/server interaction
29283 . Health check service - this service is needed to show how convenient to understand on which of the services an error occurred in jaeger
30- 4 . Oauth client - this service is needed to show a simple example of http client and server, for example oauth2 server
31- 5 . Migrate - commands for migration
32- 6 . JWT - commands for generate JWT token
29+ 4 . Migrate - commands for migration
30+ 5 . JWT - commands for generate JWT token
3331
3432# Package list
3533
@@ -43,15 +41,14 @@ Packages which use in this example project
43416 . [ gorm] ( https://github.com/jinzhu/gorm ) - database ORM
44427 . [ zap] ( https://github.com/uber-go/zap ) - logger
45438 . [ mux] ( https://github.com/gorilla/mux ) - http router
46- 9 . [ oauth2 ] ( https://github.com/go-oauth2/oauth2 ) - simple oauth2 server
44+ 9 . [ nats-streaming ] ( https://github.com/nats-io/stan.go ) - NATS Streaming System
474510 . [ gqlgen] ( https://github.com/99designs/gqlgen ) - graphql server library
484611 . [ protobuf] ( https://github.com/golang/protobuf ) - Google's data interchange format
494712 . [ grpc] ( google.golang.org/grpc ) - RPC framework
504813 . [ jaeger] ( https://github.com/uber/jaeger-client-go ) - Jaeger Bindings for Go OpenTracing API
514914 . [ casbin] ( https://github.com/casbin/casbin ) - Supports access control
525015 . [ dataloaden] ( https://github.com/vektah/dataloaden ) - DataLoader for graphql
535116 . [ nats] ( https://github.com/nats-io/nats.go ) - Golang client for NATS, the cloud native messaging system
54- 17 . [ nats-streaming] ( https://github.com/nats-io/stan.go ) - NATS Streaming System
5552
5653# Installing
5754
142139./artifacts/bin daemon -c ./artifacts/configs/development.yaml -d
143140```
144141
145- Start client
146-
147- ``` $xslt
148- ./artifacts/bin oauth-client -c ./artifacts/configs/development.yaml -d
149- ```
150-
151142Start product service
152143
153144``` $xslt
@@ -177,12 +168,6 @@ docker-compose up
177168http://localhost:16686
178169```
179170
180- ## Oauth2 client
181-
182- ``` $xslt
183- http://localhost:9094/login
184- ```
185-
186171## Http example with gRPC
187172
188173``` $xslt
@@ -265,6 +250,7 @@ mutation createUser {
265250
266251# Testing
267252```
268- export APP_WD=go_path to project_path/resources or project_path/artifacts - needed for load templates
253+ Set APP_WD for load templates as example if you use html pages in a project
254+ export APP_WD=go_path to project_path/resources or project_path/artifacts
269255➜ make test
270256```
0 commit comments