|
2 | 2 |
|
3 | 3 |
|
4 | 4 | ### Disclaimer
|
5 |
| -This demo illustrates how to integrate SurveyJS libraries with NodeJS backend. This demo doesn't cover all of real survey service application aspects, such as authentication, authorization, user management, access levels and different security issues. These aspects are covered by backend-specific articles, forums and documentation. This demo demos is just intergration one and can't be used as a real service. |
| 5 | +This demo illustrates how to integrate SurveyJS libraries with NodeJS backend. This demo doesn't cover all of real survey service application aspects, such as authentication, authorization, user management, access levels and different security issues. These aspects are covered by backend-specific articles, forums and documentation. This demo is just a sample of intergration and can't be used as a real service. |
6 | 6 |
|
7 | 7 | ## [SurveyJS Home Page](https://surveyjs.io/Examples/Service/)
|
8 | 8 |
|
9 | 9 | ## [Live Online Survey and Survey Creator Demo](https://surveyjs-nodejs.herokuapp.com/)
|
10 | 10 |
|
11 | 11 |
|
12 | 12 | ### Getting started
|
13 |
| -- Install NodeJS |
14 |
| -- Clone this repository in the `surveyjs-nodejs` folder (and make it current directory via `cd surveyjs-nodejs`) |
15 |
| -- Install npm packages via the `npm i` command |
16 |
| -- Run the server via the `npm start` command |
| 13 | +- Install NodeJS. |
| 14 | +- Clone this repository into the `surveyjs-nodejs` folder (and make it the current directory via `cd surveyjs-nodejs`). |
| 15 | +- Install npm packages via the `npm i` command. |
| 16 | +- Run the server via the `npm start` command. |
17 | 17 |
|
18 |
| -At this point demo surveyjs-nodejs service will be available at the `http://localhost:3000` address. |
19 |
| -If everything is ok, you should see project home page with list of available surveys and links to `Survey` and `Survey Creator` pages. |
20 |
| -- You can continue with survey via `Run` page, go through the survey and post results to the custom service. |
21 |
| -- You can continue with Survey Creator via `Edit` page, change the survey and store survey JSON to the custom service. |
22 |
| -- Saved survey results are available via `Results` link. |
| 18 | +At this point, the surveyjs-nodejs demo service will be available at `http://localhost:3000`. |
| 19 | +If everything is ok, you should see the project home page with a list of available surveys and links to `Survey` and `Survey Creator` pages. |
| 20 | +- You can continue with a survey via the `Run` page, go through the survey and post results to the custom service. |
| 21 | +- You can continue with Survey Creator via the `Edit` page, change the survey and store survey JSON to the custom service. |
| 22 | +- Saved survey results are available via the `Results` link. |
23 | 23 |
|
24 | 24 |
|
25 | 25 | ### Adding Postgresql database to the backend
|
26 |
| -- Install [docker](https://www.docker.com/) on your computer |
27 |
| -- Build postgresql-db docker container via `docker build -t postgresql-db .` command in the `docker/postgresql-db` folder |
28 |
| -- Start docker container via the `docker run --name dbsrv -p 5432:5432 -d postgresql-db` command |
| 26 | +- Install [docker](https://www.docker.com/) on your computer. |
| 27 | +- Build a postgresql-db docker container via the `docker build -t postgresql-db .` command in the `docker/postgresql-db` folder. |
| 28 | +- Start the docker container via the `docker run --name dbsrv -p 5432:5432 -d postgresql-db` command. |
29 | 29 | #### Note: if you are familliar with docker and docker-compose, just run `docker-compose up` from the `docker` folder instead of above commands.
|
30 | 30 | - Change db adapter from InMemoryDBAdapter to Postgresql one.
|
0 commit comments