Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darvoid/grpc-slotmachine
using gRPC with API gateways and other cool Go packages
https://github.com/darvoid/grpc-slotmachine
api-gateway express gateway go gorilla-mux gorm grpc microservices negroni protocol-buffers sql-server
Last synced: 13 days ago
JSON representation
using gRPC with API gateways and other cool Go packages
- Host: GitHub
- URL: https://github.com/darvoid/grpc-slotmachine
- Owner: DarVoid
- License: mit
- Created: 2022-05-13T16:58:10.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-25T21:56:15.000Z (over 2 years ago)
- Last Synced: 2024-10-12T07:41:16.059Z (4 months ago)
- Topics: api-gateway, express, gateway, go, gorilla-mux, gorm, grpc, microservices, negroni, protocol-buffers, sql-server
- Language: Go
- Homepage:
- Size: 423 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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