gRPC-slotMachine

module
v0.0.0-...-c5a4689 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2022 License: MIT

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

Directories

Path Synopsis
this package is a demo for handling in-memory rigged slot machine logic
this package is a demo for handling in-memory rigged slot machine logic

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL