Coder Social home page Coder Social logo

rajibmitra / surveyjs-nodejs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from surveyjs/surveyjs-nodejs

0.0 2.0 0.0 46 KB

Sample NodeJS backend for SurveyJS library and Editor

Home Page: https://surveyjs-nodejs.herokuapp.com

License: Other

JavaScript 79.59% Dockerfile 1.44% HTML 16.85% CSS 2.12%

surveyjs-nodejs's Introduction

surveyjs-nodejs

Sample NodeJS backend for SurveyJS library and Editor

Getting started

  • Install NodeJS
  • Clone this repository in the surveyjs-nodejs folder (and make it current directory via cd surveyjs-nodejs)
  • Install npm packages via the npm i command
  • Run the server via the npm start command

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 Builder pages.

  • You can continue with survey via Run page, go through the survey and post results to the custom service.
  • You can continue with editor via Edit page, change the survey and store survey JSON to the custom service.
  • Saved survey results are available via Results link.

Adding Postgresql database to the backend

  • Install docker on your computer
  • Build postgresql-db docker container via docker build -t postgresql-db . command in the docker/postgresql-db folder
  • Start docker container via the docker run --name dbsrv -p 5432:5432 -d postgresql-db command

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.

surveyjs-nodejs's People

Contributors

tsv2013 avatar dmitry-kurmanov avatar rajibmitra avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.