An open API service indexing awesome lists of open source software.

https://github.com/quickblox/survey-generator

Survey Generator
https://github.com/quickblox/survey-generator

Last synced: 10 months ago
JSON representation

Survey Generator

Awesome Lists containing this project

README

          

QuickBlox Survey Generator
=====

An elegant ready-to-go survey application.

# Demo
http://quickblox.github.io/survey-generator

# How to build your own Survey application

If you want to build your own Survey, please do the following:


  1. Download the project from here.

  2. Register a QuickBlox account (if you don't have one yet): http://admin.quickblox.com/register

  3. Log in to QuickBlox admin panel http://admin.quickblox.com/signin

  4. Create a new app

  5. Click on the app title in the list to reveal the app details:
    App credentials

  6. Copy credentials (App ID, Authorization key, Authorization secret) into config.js file.

  7. In order to post any answers you have to create a user. Go to Users module, click Add new users, enter login and password and also copy them into config.js file.

  8. Next step is to create 2 classes in Custom Objects module to store survey's questions and answers. Go to Custom module, click Add new class and create 2 classes with the following schema:


    Name: SurveyQuestion
    Fields:
    -type: String. Type of survey
    -question: String. Question
    -answers: Array of strings. Answers.
    -has_alternative_answer: Bool. Will be true if the question has an alternative answer (textarea)
    -order: Integer. Order of the question.


    Name: SurveyAnswer
    Fields:
    -type: String. Type of survey
    -answers: Array of strings. Answers.
    -full_name: String. Full name of a user
    -email: String. Email name of a user


  9. Fill QUESTIONS_CLASS_NAME and ANSWERS_CLASS_NAME variables in config.js file.

  10. Add some data to these classes.

  11. Fill typeSDK variable in config.js file. It should be equal to a value of type field in your classes.