From 06cacb943fb176a5c6a58b9b50714f1940a50b4c Mon Sep 17 00:00:00 2001 From: tsv2013 Date: Fri, 26 Oct 2018 10:43:25 +0300 Subject: [PATCH] Update README.md --- README.md | 156 ++++++++++++++++++++++++++---------------------------- 1 file changed, 75 insertions(+), 81 deletions(-) diff --git a/README.md b/README.md index 85fbe3b1..deb2d43e 100644 --- a/README.md +++ b/README.md @@ -1,86 +1,80 @@ # VueJS + SurveyJS/SurveyJS_Editor QuickStart Source [![Build Status][travis-badge]][travis-badge-url] -This repository holds the source code of the [survey.io quickstart with Vue](https://surveyjs.io/) -and potentially a good starting point for your application. - -It's been extended with testing support so you can start writing tests immediately. - -## Prerequisites - -Node.js and npm are essential to Angular and SurveyJS development. +## How to run this sample application + - git clone https://github.com/surveyjs/surveyjs_vue_quickstart.git + - cd surveyjs_vue_quickstart + - npm i + - npm run dev + - open http://localhost:8080/ in your web browser + + +For detailed explanation on how VueJS things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). + +## Add survey component on your page +```JavaScript + + + ``` - -## Install npm packages - -> See npm and nvm version notes above - -Install the npm packages described in the `package.json` and verify that it works: - -```shell -npm install -npm start -``` - ->Doesn't work in _Bash for Windows_ which does not support servers as of January, 2017. - -The `npm start` command first compiles the application, -then simultaneously re-compiles and runs the server. -Both the compiler and the server watch for file changes. - -Shut it down manually with `Ctrl-C`. - -You're ready to write your application. - -## npm scripts - -We've captured many of the most useful commands in npm scripts defined in the `package.json`: - -``` bash -# install dependencies -npm install - -# serve with hot reload at localhost:8080 -npm run dev - -Runs the app in the development mode.
-Open [http://localhost:8080](http://localhost:8080) to view it in the browser. - -The page will reload if you make edits. - -# build for production with minification -npm run build - -# build for production and view the bundle analyzer report -npm run build --report - -# run unit tests -npm run unit - -# run e2e tests -npm run e2e - -# run all tests -npm test -``` - -For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). - -[travis-badge]: https://travis-ci.org/sueveyjs/surveyjs_vue_quickstart.svg?branch=master -[travis-badge-url]: https://travis-ci.org/sueveyjs/surveyjs_vue_quickstart