A Next.js pass-and-play imposter game. Offline mode is ready now; online mode is reserved for the next phase.
npm install
npm run devOpen http://localhost:3000.
Create .env.local from .env.example:
MONGODB_URI=mongodb://127.0.0.1:27017
MONGODB_DB=imposter_gameThe app reads word cards from MongoDB. Each document in words should use this shape:
{
"word": "Apple",
"hints": ["red", "green", "orchard", "pie", "cider"]
}Check the collection and create the unique word index:
npm run seedThe app reads from imposter_game.words. If MongoDB is not configured or the words collection is empty, rounds cannot start until words are added in Atlas.