{"id":50512407,"url":"https://github.com/andyfrith/influencers-billing-web","last_synced_at":"2026-06-02T21:03:05.882Z","repository":{"id":354277473,"uuid":"1222582771","full_name":"andyfrith/influencers-billing-web","owner":"andyfrith","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-07T17:53:57.000Z","size":1904,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-07T19:25:10.983Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/andyfrith.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":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-27T14:02:30.000Z","updated_at":"2026-05-07T17:54:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/andyfrith/influencers-billing-web","commit_stats":null,"previous_names":["andyfrith/influencers-billing-web"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andyfrith/influencers-billing-web","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyfrith%2Finfluencers-billing-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyfrith%2Finfluencers-billing-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyfrith%2Finfluencers-billing-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyfrith%2Finfluencers-billing-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyfrith","download_url":"https://codeload.github.com/andyfrith/influencers-billing-web/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyfrith%2Finfluencers-billing-web/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33835766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-06-02T21:03:04.838Z","updated_at":"2026-06-02T21:03:05.877Z","avatar_url":"https://github.com/andyfrith.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).\n\nCustomer billing UI with Postgres, Drizzle, next-auth, and Stripe.\n\n## Design docs\n\n- `DESIGN.md` is the canonical visual design-system spec (Google `design.md` format) for coding agents and contributors.\n- `THEMING.md` describes how named color themes (`data-color-theme`) and light/dark interact, and how to add a new theme bundle.\n- `PRODUCT_DESIGN.md` preserves the prior architecture-style design narrative for historical context.\n\n## Local services (Postgres + Mailpit)\n\n1. Copy `.env.example` to `.env.local` and set variables (including `DATABASE_URL` and Stripe keys).\n2. Start databases and Mailpit:\n\n```bash\ndocker compose up -d db mailpit\n```\n\n3. Open **Mailpit** at [http://localhost:8025](http://localhost:8025) to read outbound mail (verification and password reset).\n4. Point the app at Mailpit’s SMTP by setting in `.env.local`:\n\n- `SMTP_HOST=localhost`\n- `SMTP_PORT=1025`\n- Optional: `EMAIL_FROM=Influencers Billing \u003cbilling@localhost\u003e`\n\nIf `SMTP_HOST` is unset, the app still works in development by logging email links to the server console.\n\n## Current implemented flows\n\n- Auth:\n  - Sign up (`/sign-up`)\n  - Verify email (`/verify-email?token=...`)\n  - Sign in (`/sign-in`)\n  - Forgot/reset password (`/forgot-password`, `/reset-password?token=...`)\n- Billing:\n  - Authenticated billing screen (`/account/billing`)\n  - Stripe Elements card add/update/remove\n  - Live payment method reads from Stripe\n- Clubs and memberships:\n  - Club Navigator (`/clubs/navigator`) displays all clubs and links to each detail page (`/clubs/[slug]`)\n  - Club directory and detail pages (`/clubs`, `/clubs/[slug]`)\n  - Club subscription via Stripe subscriptions\n  - Membership list and cancellation requests (`/account/memberships`)\n- Authenticated navigation shell:\n  - Global side navigation is shown on signed-in routes\n  - \"Clubs\" navigation targets Club Navigator (`/clubs/navigator`)\n- Admin:\n  - Admin dashboard (`/admin`)\n  - Club creation/archival (`/admin/clubs`)\n  - Plan creation/enable/disable (`/admin/clubs/[clubId]/plans`)\n  - Cancellation queue processing (`/admin/cancellation-requests`)\n  - Admin bootstrap promotion endpoint (`/api/admin/bootstrap/promote`)\n- Local email testing:\n  - Verification/reset messages are sent to Mailpit (when SMTP vars are configured)\n  - Mailpit inbox UI: [http://localhost:8025](http://localhost:8025)\n\n## Admin bootstrap (local)\n\n1. Ensure a user exists (sign up normally).\n2. Set `ADMIN_BOOTSTRAP_KEY` in `.env.local`.\n3. Set `ENABLE_ADMIN_BOOTSTRAP=true` (bootstrap is disabled unless explicitly enabled).\n3. Use Admin Bootstrap card at `/admin` (or call `/api/admin/bootstrap/promote`) with:\n   - user email\n   - bootstrap key\n4. Bootstrap is restricted to non-production and local requests only.\n5. Re-sign in if needed to refresh session role claims.\n\n## Manual MVP local test checklist\n\n1. `docker compose up -d db mailpit`\n2. `bun run db:migrate`\n3. `bun dev`\n4. Sign up with a new email.\n5. Open Mailpit and click verification link.\n6. Confirm sign-in succeeds only after verification.\n7. Trigger forgot-password and complete reset from Mailpit link.\n8. Sign in and test billing card add/update/remove.\n\n## Getting Started\n\nFirst, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n# or\nbun dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.\n\nThis project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.\n\n## Learn More\n\nTo learn more about Next.js, take a look at the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n\nYou can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!\n\n## Deploy on Vercel\n\nThe easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app-readme) from the creators of Next.js.\n\nCheck out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyfrith%2Finfluencers-billing-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyfrith%2Finfluencers-billing-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyfrith%2Finfluencers-billing-web/lists"}