项目作者: Fedia

项目描述 :
Surveys in Markdown
高级语言: HTML
项目地址: git://github.com/Fedia/survapp.git
创建时间: 2020-03-15T21:28:02Z
项目社区:https://github.com/Fedia/survapp

开源协议:GNU General Public License v3.0

下载


surv.app

With surv.app you can create advanced multi-page surveys in Markdown and style them with custom HTML/CSS. When Google Forms feels too simplistic or rigid, surv.app will do just right.

A survey in surv.app is just a Markdown document which can also contain valid HTML blocks. We provide some syntax extensions for asking questions, skip logic, and displaying previous answers.

Demo survey: https://surv.app/demo

Survey Markup Example

  1. # Ageistic Survey
  2. How old are you?
  3. ? age_group
  4. - 0-18
  5. - 19-35
  6. - 36-55
  7. - 56 or older
  8. @ age_group != "0-18"
  9. Hello, oldie!

Installation

surv.app is a node.js application backed by SQLite3, Postgres or MySQL.

Git clone:

  1. git clone https://github.com/Fedia/survapp survapp
  2. cd survapp

Configure with environment variables or .env file:

  1. # App name displayed for admins in UI
  2. APP_NAME=surv.app
  3. # Encryption secret used in authentication
  4. AUTH_SECRET=s3cr3t
  5. # Path to SQLite file or a DB connection string like mysql://<username>:<password>@<host>:<port>/<db_name>
  6. DB_CONN=survapp.db
  7. # SMTP connection string for OTP emails
  8. MAIL_CONN=smtp://username:password@smtp.server.email
  9. # The survey to show at WWW root
  10. INDEX_PATH=/index
  11. # Limit admin access to specific emails and/or domains
  12. # Anyone with an email can create surveys by default!
  13. USER_EMAILS=jane@example.com joe@example.com
  14. USER_DOMAINS=example.com example.net

Dokku or Heroku is a recommended (tested) way of deployment:

  1. dokku apps:create survapp
  2. git remote add dokku dokku@dokku.me:survapp
  3. git push dokku master

Or install and run with NPM:

  1. npm install
  2. npm run build
  3. npm start

Documentation

Some docs are avaliable here: https://surv.app/docs