{"id":29882783,"url":"https://github.com/boxingoctopuscreative/kurator","last_synced_at":"2026-05-11T05:04:01.400Z","repository":{"id":50160374,"uuid":"319127852","full_name":"BoxingOctopusCreative/kurator","owner":"BoxingOctopusCreative","description":"A Python app for tracking video game collections","archived":false,"fork":false,"pushed_at":"2022-12-08T07:50:00.000Z","size":166,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-31T14:42:45.035Z","etag":null,"topics":["flask","mongodb","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BoxingOctopusCreative.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-06T20:45:29.000Z","updated_at":"2021-01-04T14:41:00.000Z","dependencies_parsed_at":"2022-09-24T03:21:03.906Z","dependency_job_id":null,"html_url":"https://github.com/BoxingOctopusCreative/kurator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BoxingOctopusCreative/kurator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoxingOctopusCreative%2Fkurator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoxingOctopusCreative%2Fkurator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoxingOctopusCreative%2Fkurator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoxingOctopusCreative%2Fkurator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BoxingOctopusCreative","download_url":"https://codeload.github.com/BoxingOctopusCreative/kurator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoxingOctopusCreative%2Fkurator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32586187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","mongodb","python","python3"],"created_at":"2025-07-31T12:44:13.395Z","updated_at":"2026-05-03T21:32:43.095Z","avatar_url":"https://github.com/BoxingOctopusCreative.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kurator\n\nKurator is a collection tracker with a **Go (Fiber) API**, **Next.js** web UI, **PostgreSQL**, **Meilisearch**, and **Nginx** (load-balanced Next.js replicas) in Docker.\n\n---\n\n## Prerequisites\n\n- **Docker** and **Docker Compose** (recommended for running everything), or\n- **Go 1.23+** and **Node.js 22+** if you prefer to run the API and web locally against your own Postgres/Meilisearch.\n\n---\n\n## Run the full stack (Docker)\n\nFrom the repository root:\n\n```bash\ndocker compose up --build -d\n```\n\n### What starts\n\n| Service        | Role |\n|----------------|------|\n| **postgres**   | Database; SQL migrations from `api/migrations` run on first data directory init. |\n| **meilisearch**| Search index. |\n| **kurator-api**| REST API on host **8080**. |\n| **kurator-web-1 / kurator-web-2** | Two Next.js replicas behind Nginx. |\n| **nginx**      | Front door for the UI on host **80**. |\n\n### URLs (defaults)\n\n- **Web UI:** [http://localhost](http://localhost) (port 80)\n- **API:** [http://localhost:8080](http://localhost:8080) (e.g. `GET /api/v1/items`)\n- **Postgres:** `localhost:5432` (user `kurator`, password `kurator`, database `kurator`)\n- **Meilisearch:** [http://localhost:7700](http://localhost:7700)\n\nThe browser calls the API directly (`NEXT_PUBLIC_API_URL` defaults to `http://localhost:8080` at **build** time for the web image).\n\n### Useful environment variables\n\nSet these in the shell or a `.env` file next to `docker-compose.yml` before `docker compose up`:\n\n| Variable | Purpose |\n|----------|---------|\n| `AUTH_JWT_SECRET` | Secret for short-lived 2FA pending JWTs. **Change this in production.** |\n| `MEILI_MASTER_KEY` | Meilisearch master key (default `dev_master_key` in compose). |\n| `NEXT_PUBLIC_API_URL` | Base URL baked into the Next.js client (default `http://localhost:8080`). |\n| `SESSION_MAX_AGE_SECONDS` | Session cookie lifetime for the API (default 30 days). |\n| `COOKIE_SECURE` | Set to `true` when the site is served over HTTPS. |\n\nStop and remove containers (keeps named volumes):\n\n```bash\ndocker compose down\n```\n\nTo reset the database volume as well, remove the volume named for this project (inspect with `docker volume ls`) or use `docker compose down -v` (this deletes Postgres and Meilisearch data).\n\n---\n\n## Postgres only (infra compose)\n\nFor a standalone Postgres with the same migrations (e.g. local API development):\n\n```bash\ndocker compose -f infra/docker-compose.yml up -d\n```\n\nUses a separate Compose project name and volume so it does not collide with the main stack by default. If both stacks publish **5432**, run only one or set `POSTGRES_PORT` for the infra file (see `infra/docker-compose.yml`).\n\n---\n\n## Build and run locally (without full Docker UI stack)\n\n### API\n\nRequires Postgres (and Meilisearch if you use search features) reachable from your machine.\n\n```bash\ncd api\nexport DATABASE_URL='postgres://kurator:kurator@localhost:5432/kurator?sslmode=disable'\nexport MEILISEARCH_HOST='http://localhost:7700'\nexport MEILISEARCH_API_KEY='dev_master_key'   # match Meilisearch if set\nexport AUTH_JWT_SECRET='your-local-secret'\n./bin/kurator-api   # after building, see below\n```\n\nOr run directly with Go:\n\n```bash\ncd api\ngo run ./cmd/api\n```\n\nBuild binaries with **Make** (from repo root or `api/`):\n\n```bash\nmake api-build              # native OS/arch -\u003e api/bin/kurator-api\nmake -C api build-all     # darwin amd64/arm64 + linux amd64/arm64 under api/bin/\n```\n\nSee `make -C api help` for all API targets.\n\n### Web (Next.js)\n\n```bash\ncd web\nnpm ci\nexport NEXT_PUBLIC_API_URL='http://localhost:8080'   # must match where the API is reachable from the browser\nnpm run dev        # http://localhost:3000\n# or production build:\nnpm run build \u0026\u0026 npm start\n```\n\nEnsure `CORS_ORIGINS` on the API includes your UI origin (e.g. `http://localhost:3000`) if it differs from the Docker defaults.\n\n---\n\n## Makefile shortcuts (repo root)\n\n| Command | Description |\n|---------|-------------|\n| `make help` | Lists API-related shortcuts. |\n| `make api-build` | Build API for current platform. |\n| `make api-build-macos` | Cross-build for this Mac (Intel or Apple Silicon). |\n| `make api-build-linux` | Linux `amd64` and `arm64` binaries. |\n| `make api-build-all` | All four cross-compiled API binaries. |\n| `make api-test` | `go test ./...` in `api/`. |\n| `make api-clean` | Remove `api/bin/`. |\n\n---\n\n## First-time auth\n\nRegister a user from the UI (**Register**) or call `POST /api/v1/auth/register`. Sessions use an HTTP-only cookie scoped to the API origin (`http://localhost:8080` in the default Docker layout).\n\n---\n\n## Project layout\n\n- `api/` — Go API (`cmd/api`), migrations, `Makefile`\n- `web/` — Next.js 15 app\n- `infra/` — Nginx config, optional `infra/docker-compose.yml` for Postgres alone\n- `docker-compose.yml` — full application stack\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxingoctopuscreative%2Fkurator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboxingoctopuscreative%2Fkurator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxingoctopuscreative%2Fkurator/lists"}