{"id":46576633,"url":"https://github.com/blankdots/minimal-kube-app","last_synced_at":"2026-03-07T10:04:24.047Z","repository":{"id":341685757,"uuid":"926624902","full_name":"blankdots/minimal-kube-app","owner":"blankdots","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-02T22:07:49.000Z","size":13116,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-03T00:38:54.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blankdots.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-03T15:33:52.000Z","updated_at":"2026-03-02T22:07:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/blankdots/minimal-kube-app","commit_stats":null,"previous_names":["blankdots/minimal-kube-app"],"tags_count":13,"template":true,"template_full_name":null,"purl":"pkg:github/blankdots/minimal-kube-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blankdots%2Fminimal-kube-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blankdots%2Fminimal-kube-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blankdots%2Fminimal-kube-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blankdots%2Fminimal-kube-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blankdots","download_url":"https://codeload.github.com/blankdots/minimal-kube-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blankdots%2Fminimal-kube-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30212021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T09:02:10.694Z","status":"ssl_error","status_checked_at":"2026-03-07T09:02:08.429Z","response_time":53,"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":[],"created_at":"2026-03-07T10:04:23.595Z","updated_at":"2026-03-07T10:04:24.042Z","avatar_url":"https://github.com/blankdots.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## kube-app\n\nSmall Go service that tracks **npm package metadata** (name, version, dependencies) in a PostgreSQL database. A cron job fetches data from the [npm Registry](https://registry.npmjs.org) and stores it; an HTTP API lets you query it by package name (e.g. `/query?package=express`). Intended as a minimal example for running an API + cron job on Kubernetes with Helm, kind, and Tilt.\n\n### Local Development\n\nThe Makefile is primarily designed to be an aid during development work.\n\nStart setup:\n```bash\nmake bootstrap\n```\n\n#### kind + Tilt (recommended)\n\nLocal Kubernetes in Docker with live reload. Requires [kind](https://kind.sigs.k8s.io/docs/user/quick-start/#installation), [Tilt](https://docs.tilt.dev/install.html), and the [CloudNative PG](https://cloudnative-pg.io/) operator (for the database).\n\n```bash\n# One-time: create cluster, install CNPG operator, fetch Helm chart dependencies\nmake kind-create\nhelm repo add cnpg https://cloudnative-pg.github.io/charts\nhelm install cnpg cnpg/cloudnative-pg -n cnpg-system --create-namespace\nmake helm-deps\n\n# Start Tilt (builds image, loads into kind, deploys via Helm; port-forwards API to 5005)\nmake tilt-up\n```\n\nThen open the Tilt UI (default http://localhost:10350). Once the API is ready:\n\n```bash\ncurl -v -H \"Authorization: Bearer test\" \"http://localhost:5005/query?package=express\"\n# or: curl -v -H \"X-API-Key: test\" \"http://localhost:5005/query?package=express\"\n```\n\nStop:\n\n```bash\nmake tilt-down\nmake kind-delete   # when you want to remove the cluster\n```\n\n#### Build container only\n\n```bash\nmake build\n```\n\n#### Unit Testing\n\nUsing [golangci-lint](https://golangci-lint.run/usage/install/) and Go tests:\n\n```bash\nmake lint\nmake test\n```\n\n### K8s Deployment (production or manual)\n\nRequires a Kubernetes cluster (e.g. [kind](https://kind.sigs.k8s.io/docs/user/quick-start/#installation)), `helm`, and `kubectl`.\n\n#### Install and test Helm chart\n\n```bash\nmake helm-deps\nmake helm\nkubectl port-forward deployment/kube-app-api 5005:5005\ncurl -v -H \"Authorization: Bearer test\" \"http://localhost:5005/query?package=express\"\n# or: curl -v -H \"X-API-Key: test\" \"http://localhost:5005/query?package=express\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblankdots%2Fminimal-kube-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblankdots%2Fminimal-kube-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblankdots%2Fminimal-kube-app/lists"}