Skip to content

Racing and sports events service using Golang, gRPC & Protocol Buffers

Notifications You must be signed in to change notification settings

shyampundkar/sports-betting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Directory Structure

  • api: A basic REST gateway, forwarding requests onto service(s).
  • racing: A very bare-bones racing service.
sports-betting/
├─ api/
│  ├─ proto/
│  ├─ main.go
├─ racing/
│  ├─ db/
│  ├─ proto/
│  ├─ service/
│  ├─ main.go
├─ sports/
│  ├─ db/
│  ├─ proto/
│  ├─ service/
│  ├─ main.go
├─ README.md

Getting Started

  1. Install Go (latest).
brew install go

... or see here.

  1. Install protoc
brew install protobuf

... or see here.

  1. In a terminal window, start our racing service...
cd ./racing

go build && ./racing
➜ INFO[0000] gRPC server listening on: localhost:9000
  1. In another terminal window, start our api service...
cd ./api

go build && ./api
➜ INFO[0000] API server listening on: localhost:8000
  1. Make a request for races...
curl -X "POST" "http://localhost:8000/v1/listevents" \
     -H 'Content-Type: application/json' \
     -d $'{
  "filter": {}
}'

Good Reading

About

Racing and sports events service using Golang, gRPC & Protocol Buffers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages