besolov / secrethitler

Play Secret Hitler with friends @ http://secrethitler.party

Home Page:http://secrethitler.party

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Secret Hilter

http://www.secrethitler.party

Secret Hitler for mobile devices.

Disclaimer

Building this so my friends and I can play this awesome board game even if we don't have the physical game.

The game and rules are not mine. All taken from the actual board game "Secret Hilter"

Secret Hilter was created by Mike Boxleiter, Tommy Maranges, Max Temkin, and Mac Schubert

I built this web app, Secret Hitler as a Meteor.js learning project. Uses MongoDB and Handlebars

Official Rules

Screenshots for Mobile view

Lobby View / Seating View / Game View

Technology

  • MeteorJS
  • Handlebars
  • MongoDB
  • app deployed on Heroku

Cron used to clean up Database (remove inactive Rooms and Players)

  function cleanUpDatabase() {
    // remove old rooms and players
    let cutOffTime = moment().subtract(8, 'hours').toDate().getTime();

    let numRoomsRemoved = Rooms.remove({
      createdAt: {$lt: cutOffTime}
    });

    let numPlayersRemoved = Players.remove({
      createdAt: {$lt: cutOffTime}
    });
  }

  // Cron Job to remove old rooms and players
  let MyCron = new Cron(60000);
  MyCron.addJob(5, cleanUpDatabase);

About

Play Secret Hitler with friends @ http://secrethitler.party

http://secrethitler.party


Languages

Language:JavaScript 64.4%Language:HTML 29.6%Language:CSS 6.0%