https://github.com/bas080/single-page-voter
Create a poll and vote on a single page
https://github.com/bas080/single-page-voter
literate
Last synced: 2 months ago
JSON representation
Create a poll and vote on a single page
- Host: GitHub
- URL: https://github.com/bas080/single-page-voter
- Owner: bas080
- Created: 2020-08-26T10:29:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-16T23:21:28.000Z (over 5 years ago)
- Last Synced: 2025-05-31T23:15:19.428Z (10 months ago)
- Topics: literate
- Language: HTML
- Homepage: https://bas080.github.io/single-page-voter/
- Size: 126 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Single Page Voter
A simple webpage that enables users to create a poll and vote.
See it in action over [here][5].
## Documentation
Documentation of the code and project can be found [here][3].
## Building
Single page voter uses the [lit][1] program to build the code and code
documentation.
```sh
$ lit index.lit && lit -v
Literate version 0.1
Compiled by Digital Mars D on Apr 6 2016
```
## Tests
We use [prove][2] 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.
```sh
$ 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][1]. See the literate GitHub for more information. Now you can
edit the [index.lit][4] file. See the build and tests sections for more
information.
## License
GNU General Public License 3.0
[1]:https://github.com/zyedidia/Literate
[2]:https://perldoc.perl.org/prove.html
[3]:https://bas080.github.io/single-page-voter/
[4]:./index.lit
[5]:https://bas080.github.io/single-page-voter/dist/voter.html