Skip to content

forMJ/QuesCheetah

 
 

Repository files navigation

Build Status Circle CI

QuesCheetah

Web Platform with Django for the fast/easy Q&A of your site. Go check our homepage.

You can check completed sample widget and sample dashboard first. Enjoy!

Receiving realtime data through socket server is not completed yet. But you can install it and manipultate coming data.

  • Supports REST API request realated with question data.
  • Provides dashboard page to manage results.
  • Can be install easily with bundle js file fot sample widget.
  • Supports realtime data feature with our socket server.

Document / Tutorial

Basic Use of sample widget

To use sample widget, import jQuery and Bootstrap first.

<!DOCTYPE html>
<html lang="en-us">
  <head>
    <title>My Blog</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
  </head>
  <body>
    <!-- widget will be displayed -->
  </body>
  <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
</html>

Make a new div as follows inside body tag. "gid" property means id of created group question.

<div id="systemjs-sample" gid="5"></div>

Insert our bundle js file under the bootstrap file. This file includes JavaScript SDK, html, css, js files to start widget.

<script src="js/bundle-0.0.1.js"></script>

In the code of SDK file, replace "your-api-key" value inside the "config" object.

$__System.register('7', ['10'], function (_export) {
    'use strict';

    var config, qc;
    return {
        setters: [function (_) {}],
        execute: function () {
            config = {
                'apiKey': 'your-api-key',
                'callBackUrl': 'http://localhost:8000',
                'receiveRealtimeResponse': false
            };
            qc = new QuesCheetah(config);

            _export('qc', qc);
        }
    };
});

After refresh the page, our simple widget will show. image

Running the test

You can use our .yml files for using CircleCI, TravisCI. Or just enter this command in project directory.

./manage.py test

License

MIT

About

Web SDK for the survey / poll

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 71.7%
  • Python 15.0%
  • HTML 13.0%
  • Other 0.3%