https://github.com/quickblox/survey-generator
Survey Generator
https://github.com/quickblox/survey-generator
Last synced: 10 months ago
JSON representation
Survey Generator
- Host: GitHub
- URL: https://github.com/quickblox/survey-generator
- Owner: QuickBlox
- License: mit
- Created: 2015-10-01T07:12:13.000Z (over 10 years ago)
- Default Branch: gh-pages
- Last Pushed: 2015-10-21T08:44:54.000Z (over 10 years ago)
- Last Synced: 2025-03-02T13:13:38.323Z (over 1 year ago)
- Language: CSS
- Size: 1.41 MB
- Stars: 0
- Watchers: 14
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:
- Download the project from here.
- Register a QuickBlox account (if you don't have one yet): http://admin.quickblox.com/register
- Log in to QuickBlox admin panel http://admin.quickblox.com/signin
- Create a new app
- Click on the app title in the list to reveal the app details:
- Copy credentials (App ID, Authorization key, Authorization secret) into config.js file.
- 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.
- 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
- Fill QUESTIONS_CLASS_NAME and ANSWERS_CLASS_NAME variables in config.js file.
- Add some data to these classes.
- Fill typeSDK variable in config.js file. It should be equal to a value of type field in your classes.