survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results. ##Getting started
To find our more about the library go
- to the surveyjs.org site
- explore the live Examples
- and build a survey JSON using Visual Editor
Install the library using npm.
npm install survey-knockout
If you are using bootstrap then go with bootstrap templates:
npm install survey-knockout-bootstrap
If you use react, then install the react versions:
npm install survey-react
npm install survey-react-bootstrap
Or dowload the latest version as zip file Download
##Building survey.js from sources
To build library yourself:
-
Clone the repo from GitHub
git clone https://github.com/andrewtelnov/surveyjs.git cd surveyjs
-
Acquire build dependencies. Make sure you have Node.js installed on your workstation. This is only needed to build surveyjs from sources.
npm install -g gulp npm install -g typings npm install
The first
npm
command sets up the popular Gulp build tool. The secondnpm
command sets up the Typescript Definition Manager Typings. -
Create TypeScript definition files
typings install
Typescript definition files should be located at 'typings' directory.
-
Build the library
gulp makedist
After that you should have the library at 'dist' directory.
-
Run unit tests
gulp copyfiles gulp test_ci
The first command will copy all required files to 'wwwroot' directory and the last command will run unit tests usign Karma
##Coming features
Find the features under development and Todo list in the Trello board.
##License
MIT license - http://www.opensource.org/licenses/mit-license.php
##Visual Editor
Visual Editor sources are here