1
0
Fork
You've already forked commons-diener
0
No description
  • JavaScript 78.4%
  • Go 15.6%
  • templ 5%
  • Makefile 0.7%
  • Dockerfile 0.2%
2026年07月06日 22:00:07 +02:00
.github/workflows use go-blueprint to initialize repo 2025年09月17日 23:22:44 +02:00
cmd/web send query param with request of the current active input field 2026年07月01日 21:31:30 +02:00
internal show progress of each collection in the overview 2026年04月10日 22:43:36 +02:00
.air.toml use go-blueprint to initialize repo 2025年09月17日 23:22:44 +02:00
.dockerignore docker: ignore any scripts 2025年11月14日 16:10:33 +01:00
.gitignore ignore md files except readme 2026年05月15日 01:19:53 +02:00
.goreleaser.yml fix goreleaser 2026年01月08日 00:00:58 +01:00
daisyui-theme.js update daisyui to 5.6.14 2026年07月06日 22:00:00 +02:00
daisyui.js update daisyui to 5.6.14 2026年07月06日 22:00:00 +02:00
docker-compose.yml expose BLUEPRINT_DB_URL as env to docker go process 2025年11月11日 23:42:06 +01:00
Dockerfile fix typo 2026年01月08日 20:41:32 +01:00
go.mod update dependencies 2026年07月06日 22:00:07 +02:00
go.sum update dependencies 2026年07月06日 22:00:07 +02:00
LICENSE rebrand software from gocommons to commons-diener 2025年10月21日 22:29:03 +02:00
main.go move around the main.go file to fix version embed 2026年01月07日 23:55:46 +01:00
Makefile deactivate automated htmx update in Makefile 2026年05月14日 23:09:37 +02:00
README.md add anchor link for each photo in a collection 2026年04月10日 21:17:34 +02:00
tailwind.config.js use go-blueprint to initialize repo 2025年09月17日 23:22:44 +02:00

commons-diener

commons-diener is tool to prepare photos which shall be uploaded to Wikimedia Commons. It will create an XML export which can be used with VicuñaUploader.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

MakeFile

Run build make command with tests

make all

Build the application

make build

Run the application

make run

Create DB container

make docker-run

Shutdown DB Container

make docker-down

DB Integrations Test:

make itest

Live reload the application:

make watch

Run the test suite:

make test

Clean up binary from the last build:

make clean

Update all used dependencies

make update-deps

Example .env

PORT=8080
APP_ENV=local
BLUEPRINT_DB_URL=./db/test.db
SERVE_DIR=/

If you want to serve this application via a subdirectory and not at the root / of your domain, change the SERVE_DIR variable to match the subpath without a suffix slash.

Basis

Based on

  • go-blueprint with the command: go-blueprint create --name commons-diener --framework gin --driver sqlite --advanced --feature htmx --feature githubaction --feature tailwind --feature docker --git stage
  • htmx
  • templ
  • daisyui

Assumptions

  • a collection contains only photos from one day
  • the description of the image is used as title or vice versa
  • title gets suffixed with the ISO date YYYY-MM-DD
  • no special chars are allowed in the title except: .-,
  • show if there are no geocoordinates at all