bas080 / single-page-voter

Create a poll and vote on a single page

Home Page:https://bas080.github.io/single-page-voter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Single Page Voter

A simple webpage that enables users to create a poll and vote.

See it in action over here.

Documentation

Documentation of the code and project can be found here.

Building

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

Tests

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.

Contributing

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.

License

GNU General Public License 3.0

About

Create a poll and vote on a single page

https://bas080.github.io/single-page-voter/


Languages

Language:HTML 95.6%Language:JavaScript 4.3%Language:CSS 0.1%