- Notifications
You must be signed in to change notification settings - Fork4
This repository provides a quick start for developers who want to integrate SurveyJS components into their Nuxt projects to build, manage, and analyze surveys and forms.
surveyjs/surveyjs-nuxtjs
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This demo shows how to addSurveyJS Form Builder / Survey Creator to a Nuxt application.
git clone https://github.com/surveyjs/surveyjs-nuxtjs.gitcd surveyjs-nuxtjsnpm inpm run devOpenhttp://localhost:3000 in your web browser.
Install the
survey-creator-vuenpm package:npm install survey-creator-vue --save
Create a file in the
pluginsdirectory and install SurveyJS Vue plugins in this file using thenuxtApp.vueApp.use()method.Open the
next.config.tsfile and do the following in it:- List the plugin file in the
pluginsarray. - List SurveyJS style sheets in the
cssarray.
- List the plugin file in the
Create a component and configure Survey Creator in it (see the
components/SurveyCreator.vuefile).Add the component to a page (see the
app.vuefile). In this example, the component is wrapped in the<ClientOnly>tag because Survey Creator useslocalStorageto save and restore survey JSON schemas. If your application doesn't use this functionality, you can render Survey Creator on the server.
About
This repository provides a quick start for developers who want to integrate SurveyJS components into their Nuxt projects to build, manage, and analyze surveys and forms.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.