{"id":26214727,"url":"https://github.com/webkom/brus","last_synced_at":"2026-04-30T01:05:48.751Z","repository":{"id":40937436,"uuid":"203375221","full_name":"webkom/brus","owner":"webkom","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-28T17:07:55.000Z","size":5567,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-04-28T19:09:17.378Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://brus-frontend.webkom.now.sh","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webkom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-08-20T12:49:14.000Z","updated_at":"2026-04-28T17:07:58.000Z","dependencies_parsed_at":"2024-02-06T19:44:55.833Z","dependency_job_id":"2e1f90f5-93c9-4b15-99b8-98de51cdbd72","html_url":"https://github.com/webkom/brus","commit_stats":null,"previous_names":["webkom/brus"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/webkom/brus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webkom%2Fbrus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webkom%2Fbrus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webkom%2Fbrus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webkom%2Fbrus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webkom","download_url":"https://codeload.github.com/webkom/brus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webkom%2Fbrus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32450235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"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":"2025-03-12T10:18:16.006Z","updated_at":"2026-04-30T01:05:48.746Z","avatar_url":"https://github.com/webkom.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# brus\n\nbrus fridge tracker for Webkom. Members buy and refill drinks, balances are tracked, and a weekly shame run every Tuesday at 16:20 applies a debt penalty (`ceil(|saldo| / 100) × 30kr`) to anyone who has been negative for more than 7 days.\n\n## Local development\n\n### Option A — local MongoDB (safe)\n\n```bash\ndocker compose up -d   # starts MongoDB on localhost:27017\n```\n\nSet `.env.local`:\n\n```\nMONGODB_URI=mongodb://root:12345678@localhost:27017/brus?authSource=admin\nNEXT_PUBLIC_BASE_URL=http://localhost:3000\n```\n\n### Option B — production DB via SSH tunnel\n\n\u003e ⚠️ **This connects to the live database.** Any buy, refill, or reset affects real data.\n\n```bash\n# 1. Get the container's internal IP on the Coolify server\ndocker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' \u003cmongo-container-id\u003e\n\n# 2. Open the tunnel (keep this terminal open)\nssh -L 27017:\u003ccontainer-ip\u003e:27017 webkom@192.168.1.128\n```\n\nSet `.env.local`:\n\n```\nMONGODB_URI=mongodb://\u003cuser\u003e:\u003cpassword\u003e@localhost:27017/brus?authSource=admin\nNEXT_PUBLIC_BASE_URL=http://localhost:3000\n```\n\n### Start the dev server\n\n```bash\nyarn dev\n```\n\n## Environment variables\n\n| Variable               | Description                                             |\n| ---------------------- | ------------------------------------------------------- |\n| `MONGODB_URI`          | MongoDB connection string                               |\n| `NEXT_PUBLIC_BASE_URL` | Base URL used by the cron job to call `/api/applyshame` |\n| `MEMBERS_URL`          | Endpoint for fetching active Webkom members             |\n| `MEMBERS_USERNAME`     | Basic auth username for members API                     |\n| `MEMBERS_PASSWORD`     | Basic auth password for members API                     |\n\n## Deploy (Coolify)\n\nThe app builds as a standalone Next.js Docker image (`output: \"standalone\"`). Coolify handles builds and deployments from this repo automatically on push to `master`.\n\nSet the environment variables above in the Coolify service settings. `NEXT_PUBLIC_BASE_URL` should be the public URL of the deployed app (e.g. `https://brus.webkom.dev`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebkom%2Fbrus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebkom%2Fbrus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebkom%2Fbrus/lists"}