Live: which.jwlarocque.com
A simple voting/polling web app, with support for instant runoff as well as approval and plurality voting. Svelte frontend, Go backend, PostgreSQL database.
Current code quality: gradually improving
git, npm, go, and postgresqlgo get github.com/jackc/pgx github.com/jmoiron/sqlx golang.org/x/oauth2 cloud.google.com/go/compute/metadatagit clone https://github.com/jwlarocque/which.gitcd whichnpm run buildschema.sql (you might want to change the owner username)start.sh.sample with the appropriate paths and variables and rename it start.sh.chmod u+x start.shgo build -o which_server server/main.gowhich_server permission to bind reserved ports:
sudo setcap 'cap_net_bind_service=+ep' which_serverRun as daemon:
which_server.service.sample with the appropriate paths and rename it which_server.servicesudo cp which_server.service /etc/systemd/systemsudo) systemctl start which_server.serviceOr just run (sudo) ./start.sh
In Progress
Planned
Potential
Skarlso, Google sign-in Part 1
Skarlso, Part 2
Alex Pliutau, stdlib OAuth2
Jon Calhoun, Securing cookies in Go