pollstar

command module
v0.0.0-...-bd87908 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 16 Imported by: 0

README

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)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL