voter

module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT

README

voter

A simple vote web app.

Easy start

sudo go run ./cmd/server/server.go

API

Look forward: Read me located at api/README.md

Docker and MySQL

Look forward: Read me located at internal/data/db/mysql/README.md

Language

Set language in configs.json at configs folder, can change the view of language.
"Language": "zh_CN" in configs.json is default setting, you can change it yourself.
For example, en_US while use template folder templates/default/en_US, similarly, change Language option to zh_CN, the web will use templates/default/zh_CN.

Release

Set goreleaser config file and run goreleaser release
If token not found error occur, view the page: https://goreleaser.com/errors/multiple-tokens/
Also, we need generate token, at github: Settings/Developer settings -> Personal access tokens (classic), generate a key and copy to the file:~/.config/goreleaser/github_token

Directories

Path Synopsis
api
voter/v1
Package v1 is a reverse proxy.
Package v1 is a reverse proxy.
cmd
internal
biz

Jump to

Keyboard shortcuts

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