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.
To find out more about the library go
- to the surveyjs.org site
- explore the live Examples
- and build a survey JSON using Visual Editor
You can try plnkr examples at:
- Angular2 http://plnkr.co/edit/OJkKlUn1oxzWYtnruXir?p=preview
- jQuery http://plnkr.co/edit/DH4vJWSBtza7bSCDm2r9?p=preview
- Knockout http://plnkr.co/edit/JKy5wwiAhaBTMze3fOO0?p=preview
- React http://plnkr.co/edit/qXdeQa6x2FHRg0YrOlPL?p=preview
- Vue http://plnkr.co/edit/aTYVAiDvMWOf3zDReayE?p=preview
Install the library using npm.
Angular2 version:
npm install survey-angular
jQuery version:
npm install survey-jquery
Knockout version:
npm install survey-knockout
React version:
npm install survey-react
Vue version:
npm install survey-vue
Or use Azure CDN: https://surveyjs.azureedge.net/{version-name}/{filename}. You find all versions/builds in the surveyjs/build repo.
Or dowload a version as zip file from Releases
To build library yourself:
-
Clone the repo from GitHub
git clone https://github.com/surveyjs/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 karma-cli npm install
-
Build the library
npm run build_prod
After that you should have the libraries (angular, jquery, knockout, react and vue) at 'packages' directory.
-
Run unit tests
karma start
This command will run unit tests using Karma
Explore the example based on jquery datepicker