Skip to content

Repository files navigation

Imposter Game

A Next.js pass-and-play imposter game. Offline mode is ready now; online mode is reserved for the next phase.

Run Locally

npm install
npm run dev

Open http://localhost:3000.

MongoDB Words Database

Create .env.local from .env.example:

MONGODB_URI=mongodb://127.0.0.1:27017
MONGODB_DB=imposter_game

The 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 seed

The 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.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages