Quick Start Guide
Get Grimoire Infini running locally in just a few simple steps.Prerequisites
Before you begin, make sure you have:Node.js
Version 18 or higher
Git
For cloning the repository
Firebase Account
Free tier is sufficient
Code Editor
VS Code recommended
Step 1: Clone and Install
Clone the repository and install dependencies:The installation might take a few minutes as it downloads all necessary packages including Three.js and Firebase SDK.
Step 2: Firebase Setup
Create Firebase Project
- Go to Firebase Console
- Click Create a project
- Follow the setup wizard
Configure Firestore
- In your Firebase project, go to Firestore Database
- Click Create database
- Choose Start in test mode (for development)
- Select your preferred location
Get Firebase Config
- Go to Project Settings (gear icon)
- Scroll down to Your apps section
- Click Add app → Web
- Register your app and copy the config object
Add Environment Variables
Create a.env.local file in the front directory:
Step 3: Start Development
Run the development server:Step 4: Test Multiplayer
To test the multiplayer functionality:- Open multiple browser tabs or windows pointing to
http://localhost:5173 - Create or join a room in each tab
- Move cards in one tab and watch them sync in the others
- Flip cards to test real-time state synchronization
What’s Next?
Now that your game is running, explore these key areas:Architecture Overview
Understand how the system works
Multiplayer Controller
Deep dive into real-time sync
3D Rendering
Learn about Three.js integration
Customization
Modify cards and game rules
Troubleshooting
Firebase connection errors
Firebase connection errors
- Verify your environment variables are correctly set
- Check that Firestore is enabled in your Firebase project
- Ensure your Firebase project has the correct domain in authorized domains
Cards not synchronizing
Cards not synchronizing
- Check the browser console for JavaScript errors
- Verify multiple clients are connected to the same room ID
- Confirm Firestore security rules allow read/write access
3D rendering issues
3D rendering issues
- Ensure your browser supports WebGL
- Try disabling browser extensions that might interfere
- Check for GPU/graphics driver updates
Development server won't start
Development server won't start
- Make sure you’re in the
frontdirectory - Try deleting
node_modulesand runningnpm installagain - Check that port 5173 is not in use by another application
Need Help?
Join our Community
Found a bug or need help with Grimoire Infini? Open an issue on GitHub and we’ll help you out!
