A dead-simple real-time voting tool.
.github/workflows | ||
.zed | ||
api | ||
lib | ||
pages | ||
public | ||
.air.toml | ||
.dockerignore | ||
.env.example | ||
.gitattributes | ||
.gitignore | ||
docker-compose.dev.yml | ||
docker-compose.yml | ||
Dockerfile | ||
fly.toml | ||
go.mod | ||
go.sum | ||
main.go | ||
README.md |
Pollo
Stack:
- Backend: Golang + Echo
- Rendering: Golang templates
- Style: TailwindCSS + DaisyUI
- Content format: Markdown
Requirements:
- Golang 1.22.0
Instructions:
- Run go get
- Duplicate the .env.example file and call it .env
- Fill out the .env values
- Run
go install github.com/cosmtrek/air@latest
to download Air for live reload - Run
air
to start the dev server (macOS and Linux only)
Note that on MacOS, you need to right click and open the appropriate tailwind executable before you can run StyleGen. This is a limitation of running unsigned binaries in MacOS. Blame Tim Apple.
Tests
Without Coverage: go test pollo/lib
With Coverage: go test pollo/lib -cover