Skip to content

using gRPC with API gateways and other cool Go packages

License

Notifications You must be signed in to change notification settings

DarVoid/gRPC-slotMachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slot machine using gRPC services

the aim of this project was to use gRPC to deal with all the logic and having a frontend facing gateway to deal with http requests.

I'll first start by using an express server and then explore other options

Install node packages

> npm install 

Running the project:

run gRPC server:

windows

> go run .\gameService\gameServiceServer.go 

linux

> go run gameService/gameServiceServer.go 

run node gateway server:

windows

> node .\gatewayNodejsServer\server.js 

linux

> node gatewayNodejsServer/server.js 

OR

run negroni gateway server:

windows

> go run .\gatewayNegroniGoServer\gateway.go

linux

> go run gatewayNegroniGoServer/gateway.go

OR

run gorilla gateway server:

windows

> go run .\gatewayGorillaGoServer\gateway.go

linux

> go run gatewayGorillaGoServer/gateway.go

install godocs so you can read the dank documentation

> go install golang.org/x/tools/cmd/godoc@latest

Releases

No releases published

Packages

No packages published