Skip to content

Survey Forms as code (TypeForm, Google Forms alternative) based on SurveyJS + Gatsby + Postgraphile

Notifications You must be signed in to change notification settings

stephane-klein/poc-serveyjs-gatsby

Repository files navigation

POC SurveyJS + Gatsby + Postgraphile

Based on:

Demo video: https://youtu.be/yMdjBaz2Wa4

Why this project?

I would like to create conditional form surveys.

This is my journey:

  • attempt 1: with Google Forms ⇢ it failed, Google Forms is too limited about conditional feature
  • attempt 2: with free TypeForm plan ⇢ it failed, too limited about conditional (« Logic jumps »)
  • attempt 3: with professional TypeForm plan ⇢ it failed, really tough and tedious to configure and some limitations
  • attempt 4: with OpenSource LimeSurvey ⇢ fewer limitations that Google Forms and TypeForm but really tough and tedious to configure

Finally, after some search on GitHub, I found SurveyJS Library and I wrote this POC to test it.

It is a success, now I can write and configure my survey with code: src/datas/surveys.json.

SurveyJS have many build in Question Types and I can customize or create new Question Types.

Yes, I know, this solution isn't accessible to non-programmer people, but I'm programmer, and with this stack, I have no limitation and I can write survey quickly, without painful UI.

Prerequisites

On OSX: install with Brew

Brew is a popular package manager on macOS. However it does not come pre-installed: follow the instructions from the Brew Website:

$ brew cask install docker
$ brew install git node yarn

Getting started

$ docker-compose up -d postgres
$ ./scripts/load-seed.sh
$ docker-compose up -d

Run frontend:

$ yarn install
$ yarn develop

Go to http://127.0.0.1:8000/survey/fullstack/ and fill the survey.

See results:

$ ./scripts/enter-in-pg.sh

About

Survey Forms as code (TypeForm, Google Forms alternative) based on SurveyJS + Gatsby + Postgraphile

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published