Skip to content

5 Minute Chess - Made with Nuxt 3, Vite, Vue 3 and Vuetify 3

License

Notifications You must be signed in to change notification settings

thieleju/5minutechess

Repository files navigation

5 Minute Chess

Create and publish Docker image to ghcr.io

Preview Image

🚀 How it works

Players are able to vote for a move. You can log in via OAuth for Github, Discord and Lichess. Every 5 minutes the most voted move is played on the board. If there are no votes, the timer resets and starts again.

Warning
Site is currently not publicly available due dependency vulnerabilities I'm too lazy to fix

Environment Variables

These environment variables are required to implement OAuth Login:

GITHUB_CLIENT_ID=<github oauth>
GITHUB_CLIENT_SECRET=<github oauth>
DISCORD_CLIENT_ID=<discord oauth>
DISCORD_CLIENT_SECRET=<discord oauth>
LICHESS_CLIENT_ID=<lichess oauth>
LICHESS_CLIENT_SECRET=<lichess oauth>
JWT_TOKEN_EXPIRATION=1d
JWT_SECRET=<random string>
DB_REDIS_HOST=<redis host>
DB_REDIS_PORT=<redis port>
BASE_URL=http://localhost:3000

Nuxt 3 Minimal Starter

Look at the nuxt 3 documentation to learn more.

Setup

Make sure to install the dependencies:

# yarn
yarn install

# npm
npm install

# pnpm
pnpm install --shamefully-hoist

Development Server

Start the development server on http://localhost:3000

npm run dev

Production

Build the application for production:

npm run build

Locally preview production build:

npm run preview

Checkout the deployment documentation for more information.