Categorygithub.com/iunn-sh/codex-mirror
repositorypackage
0.0.0-20241026033246-eb9919f71b16
Repository: https://github.com/iunn-sh/codex-mirror.git
Documentation: pkg.go.dev

# README

GitHub go.mod Go version GitHub release (latest by date) Go Report Card License GitHub CI GitHub CD Website

Codex Mirror for Formosa & Pescadores

:warning: Personal project to track changes of laws. USE AT YOUR OWN DISGRESSION.

:information_source: Please refer to 全國法規資料庫 for the most accurate and up-to-date material.

:globe_with_meridians: Hosting on Github Pages https://iunn-sh.github.io/codex-mirror

dircontentformat
rawdownloaded and unzipped files.zip / .csv / .json
depotparsed data from raw.json
docsprocessed data for frontend.md

Local Development

# Go: process data 
## with Docker
docker run --rm $(docker build -t codex-mirror -q .)
docker run --rm $(docker build -t codex-mirror --progress=plain --no-cache .) # debug
## with Golang (tested with 1.20)
go fmt ./...
go mod tidy
go run .

# Mkdocs Material: host frontend
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material:9.5.5
# visit http://localhost:8000/ from browser

Production Deployment

Commit or merge PR to main branch