Skip to content

rexlx/pollstar

Repository files navigation

go/htmx polling web application.

See dockerfile if running in docker, otherwise run

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)

About

web application for conducting polls

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published