rexlx / pollstar

web application for conducting polls

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Go 97.9%Language:Dockerfile 2.1%