Coder Social home page Coder Social logo

kinyodan / livequiz Goto Github PK

View Code? Open in Web Editor NEW

This project forked from supertinou/livequiz

0.0 0.0 0.0 409 KB

Realtime Quiz app with Ruby On Rails, ReactJS and PubNub

Home Page: http://livequiz-staging.herokuapp.com/

License: MIT License

Ruby 57.51% JavaScript 6.21% CSS 9.01% HTML 19.57% Shell 1.14% CoffeeScript 6.57%

livequiz's Introduction

LiveQuiz Demo

LiveQuiz is an app that allows you to create awesome real time quizzes. It is powered by PubNub

  • Create a quiz with questions and answers
  • Create a quiz session and invite people
  • Start the Quiz
  • People can play the Quiz in realtime and see the results

Built With

LiveQuiz Technologies

  • Ruby on Rails — The back end that allows to create quizzes is a Rails app.
  • PubNub — The realtime communication layer that allows you to play the quizzes in realtime is PubNub. This app uses the Javascript and Ruby PubNub APIs. It uses PubNub Access Manager and Presence features to secure quizzes access and to allow to see the participants statuses.
  • ReactJS — The quiz user interface is made with ReactJS and allows to display and refresh the realtime data received from the PubNub Network.
  • PostgreSQL — The main data store is in Postgres.

Plus lots of Ruby Gems, a complete list of which is at /develop/Gemfile.

Getting Started

After you have cloned this repo, run this setup script to set up your machine with the necessary dependencies to run and test this app:

% ./bin/setup

It assumes you have a machine equipped with Ruby, Postgres, etc. If not, set up your machine with this script.

PubNub Account and API keys

  • Create a PubNub account here and create an app.

  • Activate Access Manager and Presence feature.

  • Get your SECRET_KEY, PUBLISH_KEY and SUBSCRIBE_KEY and set them in the file .env.

    There is an example in the .sample.env file :

    PUBNUB_SECRET_KEY=XXXXXXXXXXXXX
    PUBNUB_PUBLISH_KEY=XXXXXXXXXXXX
    PUBNUB_SUBSCRIBE_KEY=XXXXXXXXXX
    

Running the application

After setting up, you can run the application using foreman:

% foreman start

If you don't have foreman, see Foreman's install instructions. It is purposefully excluded from the project's Gemfile.

Guidelines

Use the following guides for getting things done, programming well, and programming in style.

Deploying

If you have previously run the ./bin/setup script, you can deploy to staging and production with:

$ ./bin/deploy staging
$ ./bin/deploy production

Contributing

Develop : Build Status

LiveQuiz is 100% free and open-source. You can find some features in the issues page

livequiz's People

Contributors

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