This a simple dice game
- Golang
- Gin-gonic
- PostgreSQL
- GORM
- REST
- Mockery for testing
Clone the project from GitHub using the command
git clone git@github.com/tejiriaustin/apex-network.git
- Go
https://go.dev
- run command
to index files and dependencies
go mod tidy
- Create file and name
.env
- Contact the admin of this project to get your personal credentials
- Run command to start the application
make app
5.Test on postman
- Create player
URL: {{url}}/game/create-player
Body: {
"first_name": "Tejiri",
"last_name": "Dev"
}
- Start Game
URL: {{url}}/game/start/:player_id
- End Game
URL: {{url}}/game/end/:player_id
- Roll Dice
URL: {{url}}/game/roll-dice/:player_id
- Fetch Balance
URL: {{url}}/game/balance/:player_id
- Fund Wallet
URL: {{url}}/game/fund-wallet/:player_id
- List Transactions
URL: {{url}}/game/transactions/:player_id
- Is Playing
URL: {{url}}/game/is-playing/:player_id