Board Games Bond
A collection of popular board games that you can play online with friends!
Games Included
- Codenames - A word association game of spies and secrets
- Codenames Duet - A cooperative word game for two players
- Decrypto - Code-breaking team communication challenge
- Chess - The classic strategy game of kings and queens
How to Play
- Visit Board Games Bond
- Select a game you want to play
- Follow the instructions to start a new game or join an existing one
- Share the game code with friends to play together
Development
Prerequisites
- Node.js (v18+)
- npm or yarn
Installation
# Clone the repository
git clone https://github.com/razat249/board-games-bond.git
# Navigate to the project directory
cd board-games-bond
# Install dependencies
npm installRunning locally
npm startThis will start the development server on http://localhost:3000.
Building for production
npm run buildThis creates a build directory with the production build.
Deploying to GitHub Pages
One-time setup
- Install the gh-pages package:
npm install --save-dev gh-pages- Add homepage and deploy scripts to package.json:
{
"homepage": "https://razat249.github.io/board-games-bond",
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
}
}Deploying updates
To deploy the latest changes to GitHub Pages, you need to:
- Make sure your local changes are committed to Git:
git add .
git commit -m "Your commit message"- Push your changes to GitHub:
git push origin main- Deploy to GitHub Pages:
npm run deployAlternatively, you can manually deploy by:
- Build the project:
npm run build- Push the build folder to the gh-pages branch:
git checkout -b gh-pages
git rm -rf .
git add build
git commit -m "Deploy to GitHub Pages"
git subtree push --prefix build origin gh-pagesTroubleshooting
If you encounter issues with GitHub Pages deployment:
- Make sure your GitHub repository has GitHub Pages enabled in the Settings tab
- Check that the gh-pages branch is set as the source for GitHub Pages
- Ensure you have proper Git credentials configured
Credits
Board Games Bond is inspired by the original board games:
- Codenames by Vlaada Chvátil
- Decrypto by Thomas Dagenais-Lespérance
- Chess, a classic game with centuries of history
License
MIT