~zge/survey

A simple survey webpage
Fixed golint issues
Don't die while processing a submission request
Prevent textarea boxes from overlapping

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~zge/survey
read/write
git@git.sr.ht:~zge/survey

You can also use your local clone with git send-email.

SURVEY
======

This is a simple web application to conduct surveys. The application
itself is written in [Go] and generates a static binary. To compile
it, run

	$ go get
	$ go build

in the current directory. The binary "survey" should now have been
generated.

To start the survey, start the program like so

	$ ./survey < questions

where "questions" is a JSON file describing the survey. Here's an
example:

	Survey Title
	This is a sample survey,
	and you're reading it's description.

	The description ends when a line contains
	a single period, like this one:
	.

	SDo single-option questions begin with a "S"?
	Yes
	No

	MIs this a multiple-choice question?
	It is
	It actually is

	HA header will be inserted here

	sDo lower-case variants of "S" and "M" give you an "other"
	field?
	Yes
	No (false)

	*TThis will result in a required text field.

A SQLite database will be created to store all the answers, and the
server will start listening on `localhost:8080`.

---

The code is released into the public domain, under the CC0 license.

[Go]: https://golang.org/