/spyfall

Simple website implementation of the card game Spyfall

Primary LanguageJavaScriptMIT LicenseMIT

spyfall

React + Firebase implementation for the card game Spyfall

Localizations

Crowdin

Access crowdin's page to request new translations or help translating existing ones.

Running the project (Client-side only, using dev firebase server)

  • Install node.js
  • Clone this project, enter the cloned folder and install dependencies with npm install
  • Run the project with npm run start and access it at http://localhost:4000

Running the project (Using your own firebase project)

  • Install node.js
  • Install firebase-tools
  • Clone this project, enter the cloned folder and install dependencies with npm install
  • Setup a new firebase project with the firebase init command and follow the instructions (select only the feature database. Use the default values for everything and don't overwrite anything)
  • Create a new web app with the command firebase apps:create WEB. The command will output the created App Id
  • Execute the command firebase apps:sdkconfig WEB <created app id> to get the complete app configuration
  • Copy the configuration to the file env/dev.js. You don't need to fill all fields.
  • Access your firebase project in the firebase console and enable anonymous authentication (Authentication → Sign-in method → Anonymous)
  • Deploy firebase database security rules firebase deploy --only database
  • Run the project with npm run start and access it at http://localhost:4000