- ⚡ Realtime updates
- 🥳 Simple login screen, click and play!
- 📷 Personalized photos on cards
- 🛠 Admin panel
- ✅ Live updated scoreboard of players
- 👀 Multiple games at one time
Right now, you have only test tournament to choose from.
Go to the website kajtekparty.vercel.app with your friends, choose your favorite Mario character and click join under Test game. Wait a little (serverless functions are slow) and you will be in the lobby.
One person has to be the master of the game. Go to admin panel, login with github and you can control the game.
Now you can start it and play! After each round kick player that was last, if only one player has left click "win" button next to him.
- Rename
.env.local.exampleto.env.local
You need cloudinary account to supply website with photos for users and cards. Get your API secret, API key and API cloud name and fill.env.localfile with them. - Create Firebase Project or use existing one.
CreatefirebaseConfig.jsonfile in root directory and fill it with JSON data from your firebase config, here is an example, how it should look:
firebaseConfig.json
{
"apiKey": "AIzaSyCDwoHf3kcHn5zdFDScAcxf4Kq0xz6Nvg",
"authDomain": "memory-game.firebaseapp.com",
"databaseURL": "https://memory-game-default-rtdb.europe-west1.firebasedatabase.app",
"projectId": "memory-game",
"storageBucket": "memory-game.appspot.com",
"messagingSenderId": "453582340732",
"appId": "1:453582340732:web:6a658a61g431e774c2f9f9",
"measurementId": "G-H5SHPORBJ1"
}-
Run
npx ts-node cli/createEnvFromJson.ts, then copy and pasteNEXT_PUBLIC_FIREBASE_CONFIGto yoursenv.localfile. -
Run
npm install -
There we go! Run
npm run devlaunch app!
- Node.js >= 12.22.0
- NPM 2
npm run dev— Starts the application in development mode athttp://localhost:3000.npm run build— Creates an optimized production build of your application.npm start— Starts the application in production mode.npm run type-check— Validate code using TypeScript compiler.npm run lint— Runs ESLint for all files in thesrcdirectory.npm run format— Runs Prettier for all files in thesrcdirectory.
This project is licensed under the MIT License - see the LICENSE.md file for more information.
