Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rexlx/pollstar
web application for conducting polls
https://github.com/rexlx/pollstar
go htmx
Last synced: 23 days ago
JSON representation
web application for conducting polls
- Host: GitHub
- URL: https://github.com/rexlx/pollstar
- Owner: rexlx
- License: mit
- Created: 2024-03-09T00:04:53.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-03-17T23:31:17.000Z (8 months ago)
- Last Synced: 2024-06-19T20:53:44.633Z (5 months ago)
- Topics: go, htmx
- Language: Go
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## go/htmx polling web application.
See dockerfile if running in docker, otherwise run```shell
go build .
./pollstar -questions questions.json -admin
```## admin page
http://localhost:3000/config to configure. toggle admin mode when finished.## routes
- h.Server.HandleFunc("/poll", h.PollHandler)
- h.Server.Handle("/", protectedPoll)
- h.Server.HandleFunc("/results", h.ResultsHandler)
- h.Server.HandleFunc("/config", h.ConfigHandler)
- h.Server.HandleFunc("/download", h.DownloadHandler)
- h.Server.HandleFunc("/clear-poll", h.ClearPollHandler)
- h.Server.HandleFunc("/add-question", h.AddQuestionHandler)
- h.Server.HandleFunc("/add-option", h.AddOptionHandler)
- h.Server.HandleFunc("/questions", h.QuestionHandler)
- h.Server.HandleFunc("/admin-mode", h.AdminModeHandler)