- Install NodeJS
- Clone this repository in the
surveyjs-nodejsfolder (and make it current directory viacd surveyjs-nodejs) - Install npm packages via the
npm icommand - Run the server via the
npm startcommand
At this point demo surveyjs-nodejs service will be available at the http://localhost:3000 address. If everything is ok, you should see project home page with list of available surveys and links to Survey and Survey Creator pages.
- You can continue with survey via
Runpage, go through the survey and post results to the custom service. - You can continue with Survey Creator via
Editpage, change the survey and store survey JSON to the custom service. - Saved survey results are available via
Resultslink.
- Install docker on your computer
- Build postgresql-db docker container via
docker build -t postgresql-db .command in thedocker/postgresql-dbfolder - Start docker container via the
docker run --name dbsrv -p 5432:5432 -d postgresql-dbcommand
Note: if you are familliar with docker and docker-compose, just run docker-compose up from the docker folder instead of above commands.
- Change db adapter from InMemoryDBAdapter to Postgresql one.