Giter Club home page Giter Club logo

angulareventstorequiz's Introduction

AngularEventStoreQuiz

Example of AngularJS + EventStore for a real-time quiz app

Getting started

  • You need to have EventStore running locally on the default port, with projections enabled
  • Create the projections from config/projections.js within EventStore
  • Make sure you have Node.js installed
  • Type npm install
  • Type . ./build.sh
  • Modify run.sh to point to your EventStore location
  • Type . ./run.sh
  • Navigate in your browser to http://localhost:3030/index-step.html

Try it out

Here's what it looks like in action:

Screenshot

  • Start one browser and keep it on the Quiz tab.
  • Start another and move to the Results Monitor tab, which observes the QuestionAnswers projection.
  • Answer the question in the first browser, and notice the answer pop into place in real-time on the Results Monitor tab.
  • Continue taking the quiz, one question at a time.
  • If you open a third browser and check the Show current answer counts, you'll see the counts update in real-time as other people select a given answer choice. This observes the QuestionAnswerCounts projection.

Known issues

The Questions tab is supposed to let you edit Questions. But, it's broken.

There are some challenges and opportunities to think about when using Events and an app like this:

  • When someone edits a Question, that is an Event, right?
  • Therefore, the previous attempts at that question in a particular version are more related to each other than are any new attempts based upon the edit.
  • This opens up a lot of questions as to how to design the data model correctly to beneft from analyzing behavior based upon a continually evolving set of questions and answer choices.

Next steps

Oh I don't know...reimplement with MeteorJS :-D

angulareventstorequiz's People

Contributors

jogoshugh avatar

Watchers

James Cloos avatar Matias Heffel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.