Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

281 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Speed Roulette

CI

A fast-paced browser game that puts a twist on classic casino roulette.


About

Inspired by the intensity of speed chess, Speed Roulette puts an interesting twist on the beloved high-stakes casino game. Players start with 20 dollars, 10 possible spins, and just 60 seconds on the clock. When bets are submitted, the winning number is revealed, earnings are paid out, and the clock starts ticking again just 2.5 seconds later.

Compete for a spot on the daily leaderboard by making quick decisions, taking bold risks, and hitting big payouts!


Tech Stack

Frontend

Vite React TypeScript

Backend

Go

Database & Caching

PostgreSQL Redis

Infrastructure & DevOps

Docker DigitalOcean Route 53
Nginx Certbot

Tooling / Dev Dependencies

ESLint Stylelint Prettier Cypress
golangci-lint gofmt Go Test


Running the Project Locally

1. Requirements

  • Docker installed and running

[OPTIONAL] For interacting with npm or Go environments locally (such as running CI tests):

  • Node.js (v18 or newer)
  • npm (comes bundled with Node.js)
  • Go (v1.21 or newer)

2. Clone the repository

git clone https://github.com/JManion32/speed-roulette.git

or

git clone git@github.com:JManion32/speed-roulette.git

3. Create a .env file

For a development build:

cp .env.example .env

4. Run the full stack

docker compose up --build

5. Accessing the site

Visit:

http://localhost:5173/

If using a non-default .env: http://localhost:<SITE_HTTP_PORT>/


Continuous Integration

Stylelint (optional --fix)

npx stylelint . --fix

ESLint (optional --fix)

npx eslint . --fix

Prettier (or --check)

npx prettier . --write

Stylelint, ESLint, and Prettier (fix)

npm run lint-fix

Cypress E2E Testing Interface

npx cypress open

Go Format

gofmt -w .

Go Lint

golint ./...

Go Unit Tests

go test -v ./...

About

A fast paced browser game combining Roulette and speed chess.

Resources

Stars

Watchers

Forks

Contributors

Languages