Simple poll app built with reflex-platform and scotty. Stack, cabal, nix integration based on https://github.com/anderspapitto/nix-stack-ghcjs-demo.
https://reflex-scotty-poll-demo.herokuapp.com/
Admin panel (in Polish currently, sorry): https://reflex-scotty-poll-demo.herokuapp.com/admin/
User: admin
Password: correct horse battery staple
- Runtime configured polls
- Questions form a directed graph, with paths dependent on the answer
- No back button (Google polls doesn't offer that)
- Custom background per question
- Optional image per question
- Clone the repository
git submodule update --init
./nix-front-build
- Open the last printed
file://
in the browser
Development build is about 5mb
, but is quick.
Release build is about 1mb
, but it takes a bit longer.
https://www.npmjs.com/package/closurecompiler is required.
- Build with
./nix-front-release
Done with the awesome https://github.com/mfine/heroku-buildpack-stack
Prerequisites:
- Install heroku cli: https://devcenter.heroku.com/articles/heroku-cli#download-and-install
heroku create --buildpack https://github.com/mfine/heroku-buildpack-stack.git
orheroku git:remote --app reflex-scotty-poll-demo
if you already have an app- (optional)
heroku apps:rename reflex-scotty-poll-demo
./heroku-build-deploy
./nix-front-repl
- Poor diagnostics with badly formatted questions
- Allows multiple submissions, makes a feeble attempt at keeping the identity
- No real protection from the client modifying the question structure, no proof-of-work