The objective of this game is to draw all 5 cards from a deck of 4 different types of cards before there are no cards left to draw.
- Click "Start Game" to begin.
- Draw cards from the deck.
- Win by drawing all 5 cards before the deck is empty.
- React: Frontend library for building user interfaces
- Redux: State management library for managing application state
- Tailwind CSS: for styling
- Golang: Backend language for server-side logic
- Gin: Web framework for Golang
- Redis: Database
- Docker installed on your machine
- Node.js and npm installed (Node version :v18.18.0)
- Golang installed (Go version: 1.22.0)
- Change directory to the server directory
cd server
. - Run
docker pull redis
to pull the Redis Docker image. - Run
docker run --name redis-test-instance -p 6379:6379 -d redis
to start a Redis container.
- Run
go get
to download the project dependencies. - Run
go run main.go
to start the Golang server with Gin.
- Change directory to the client directory
cd client
. - Run
npm install
to install the dependencies. - Run
npm run dev
to start the client on port 5173.
If everything is set up correctly, you should see the game running in your browser.