A simple webpage that enables users to create a poll and vote.
See it in action over here.
Documentation of the code and project can be found here.
Single page voter uses the lit program to build the code and code documentation.
$ lit index.lit && lit -v
Literate version 0.1
Compiled by Digital Mars D on Apr 6 2016
We use prove conventions for testing. All tests are therefore located in
the ./t
directory.
The tests use NPM's tape library. Make sure to npm i
before running the
tests.
Run lit before running the tests to make sure the generated files are up to date.
$ lit index.lit && prove | head -n -2 # Not interested in summary results.
t/state.t ..... ok
t/to_pairs.t .. ok
All tests successful.
Most files in this project are generated by lit.
Install lit. See the literate GitHub for more information. Now you can edit the index.lit file. See the build and tests sections for more information.
GNU General Public License 3.0