Skip to content

bkach/truco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Truco [WIP]

This Repo is a simple implementation of the game Truco written in go and react.

How to Run

  1. cd to the cloned directory
  2. Run the command: go run main.go
  3. Navigate to localhost:8000/createGame?name=myGame
  4. If you see output similar to:

{"game_id":"game_ffa71ce1-86e1-46b3-870f-b6fc3a019124"}

It's working!

How to deploy

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.

Endpoints

For a list of endpoints and how to use them, take a look at the routes.go file.

Project Management

About

Truco card game written in Go and React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published