This Repo is a simple implementation of the game Truco written in go and react.
cd
to the cloned directory- Run the command:
go run main.go
- Navigate to
localhost:8000/createGame?name=myGame
- If you see output similar to:
{"game_id":"game_ffa71ce1-86e1-46b3-870f-b6fc3a019124"}
It's working!
You'll first need to set the $TRUCO_SERVER
environment variable to a given user@ipaddress
. I'll share the one I use
with collaborators. Then run:
chmod +x /scripts/deploy.sh
./scripts/deploy.sh
Take a look at deploy.sh
for details.
For a list of endpoints and how to use them, take a look at the routes.go
file.