Skip to content

quibbble/connect4

Repository files navigation

Connect4

Netlify Status

Connect4 game website. Play at connect4.quibbble.com.

This repo contains ReactJS frontend code and makes use of custom React components found at boardgame. Game logic can be found at go-connect4. Server logic can be found at go-quibbble.

Quibbble Connect4

Run Locally

  • Generate a personal GITHUB_ACCESS_TOKEN with package read permissions. Read more about it here.
  • Create a .npmrc file in the connect4 root directory with the following:
//npm.pkg.github.com/:_authToken=<GITHUB_ACCESS_TOKEN>
@quibbble:boardgame=https://npm.pkg.github.com
  • Run npm i.
  • Run the quibbble server (go-quibbble) locally on port 8080.
  • Create a .env.local file in the connect4 root directory with the following:
VITE_HOST="http://127.0.0.1:8080"
VITE_WEBSOCKET="ws://127.0.0.1:8080"
  • Run npm run dev.