Skip to content

MrHen/obtuse-octo-adventure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

obtuse-octo-adventure

A simple card game. To see it in action, start at http://mrhen.github.io/obtuse-octo-adventure (be gentle; it can take some time to wake up the server.)

Technical Overview

The app is split into client and server folders but could be split into two repos without trouble (with one exception).

  • Client
  • Server
    • Deployed at https://murmuring-tundra-3318.herokuapp.com/ (no exposed server dashboard at this time)
      • Hosted on Heroku
      • Be gentle; it can take some time to wake up the Heroku instance
      • Deploy using gulp deploy from the server directory
      • Uses npm postinstall hook to build TypeScript and run tests
    • REST API
    • "Hot swappable" data stores
    • Event services
      • Client event traffic handled with Socket.IO source
        • Translates back-end events into WebSocket friendly messages and event names
        • Assumes only one real user; would need to be extended to support more than one user at a time
      • Game service hooks into Redis PubSub and reacts using a game event loop source
      • Listener chain is set up in the core app
      • Events are not setup to scale horizontally in this release but it was designed with that direction in mind