[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114640":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":30,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":15,"starSnapshotCount":15,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},114640,"govite-fullstack","rekanara\u002Fgovite-fullstack","rekanara","HTTP contract (paths, envelope, cookies, error codes) is kept identical so the admin app works unchanged.","",null,"TypeScript",55,20,51,0,1,3,4,47.87,"MIT License",false,"main",[24,25,26,27,28,29],"fiber-go","golang","golang-application","vite","vite-react","vitejs-react","2026-10-27 02:44:22","2026-11-22 11:18:13","# govite-fullstack\n\nReusable fullstack starter: Go API + Vite\u002FReact admin. Each side runs on its own.\n\n```\nbe\u002F   Go 1.26, Fiber v2, pgx + sqlc, goose migrations\nfe\u002F   pnpm workspace: apps\u002Fadmin (Vite SPA), packages\u002Fui (shadcn), packages\u002Fcontracts (zod)\n```\n\n## Features\n\n- Auth: JWT access token + rotating refresh cookie (reuse revokes the session), forgot\u002Freset password (web link or mobile OTP), invites, email verification, session list\u002Frevoke, mobile clients via `X-Client: mobile`.\n- RBAC: roles, permission catalog, `self|team|all` scopes, role-required TOTP 2FA with backup codes.\n- Users: list\u002Fsort\u002Ffilter, bulk actions, soft delete\u002Frestore, CSV\u002FXLSX export, CSV import with preview.\n- Audit log with filters and CSV export. App settings and public branding. Health, Prometheus-style metrics and system status.\n- Notifications: in-app + optional FCM push, device registration and push opt-outs.\n- Announcements: drafts, pinning, image upload and one-time notification on publish.\n- Optional MinIO\u002FS3-compatible storage: avatars, branding, announcement images, private signed attachments.\n- Verified, idempotent Midtrans webhooks; API key management; daily cleanup with a Postgres advisory lock; optional Sentry.\n\n## Setup\n\n```bash\ndocker compose up -d postgres redis mailpit minio     # postgres :5434, redis :6380, mailpit :8025, MinIO console :9101\ncd be && cp .env.example .env && make migrate seed\ncd fe && pnpm install && cp apps\u002Fadmin\u002F.env.example apps\u002Fadmin\u002F.env\n```\n\n## Development\n\n```bash\ncd be && make dev     # or: make run          → http:\u002F\u002Flocalhost:3000\u002Fapi\u002Fv1\ncd fe && pnpm dev     # admin                 → http:\u002F\u002Flocalhost:5173\n```\n\nVite proxies `\u002Fapi` to `:3000`, so the browser sees one origin (no CORS, refresh cookie just works).\nSign in with `SUPER_ADMIN_EMAIL` \u002F `SUPER_ADMIN_PASSWORD` from `be\u002F.env` (the example values are public: change them before exposing the app).\nSuper Admin starts without required 2FA; turn it on per role in Roles (the next login shows a QR code). Re-running `make seed` keeps that choice.\nOutside production, Swagger UI is at `\u002Fapi\u002Fdocs`; raw OpenAPI is at `\u002Fapi\u002Fdocs-json` and `\u002Fapi\u002Fdocs-yaml`.\n\n## Verification\n\n```bash\ncd be && make lint test\ndocker compose up -d postgres_test && make test-e2e\ncd fe && pnpm lint && pnpm typecheck && pnpm test && pnpm build\nscripts\u002Fe2e.sh                                                # browser e2e (Playwright), needs postgres_test\nAPI_BASE_URL=http:\u002F\u002Flocalhost:3000\u002Fapi\u002Fv1 scripts\u002Fsmoke.sh   # SUPER_ADMIN_* must not require 2FA\n```\n\n## Adding a frontend (e.g. SEO landing)\n\n```bash\ncd fe && pnpm create astro@latest apps\u002Flanding\n```\n\nAdd `\"@app\u002Fui\": \"workspace:*\"` (and `@astrojs\u002Freact` for React islands), import `@app\u002Fui\u002Fglobals.css`.\n`packages\u002Fui` already scans `apps\u002F*\u002Fsrc\u002F**\u002F*.astro` for Tailwind classes.\n\n## Production checklist\n\n- `APP_ENV=production`, strong `JWT_ACCESS_SECRET`, `REFRESH_TOKEN_PEPPER`, `SUPER_ADMIN_PASSWORD`.\n- Serve web and API on one origin behind HTTPS (refresh cookie is `Secure`, path `\u002Fapi\u002Fv1\u002Fauth`). If they must be on separate origins, set `CORS_ORIGIN` and `VITE_API_BASE_URL`.\n- Behind a reverse proxy set `TRUST_PROXY=true` so rate limits see the client IP.\n- Set `REDIS_URL` when running more than one API instance (shared rate limits, permission cache).\n- Run `api migrate` before serving traffic; `api seed` after changing the permission catalog.\n- Replace every placeholder from `.env.example` (`JWT_ACCESS_SECRET`, `REFRESH_TOKEN_PEPPER`, `SUPER_ADMIN_PASSWORD`, MinIO keys). With `APP_ENV=production` the API refuses to boot while the JWT secret or pepper still contains `change-me`.\n- Turn on required 2FA for the Super Admin role after the first sign-in.\n- Optional production stack: `docker-compose.prod.yml` serves the SPA and proxies `\u002Fapi` to the API.\n\n## License\n\nMIT, see [LICENSE](LICENSE).\n","govite-fullstack 是一个开箱即用的企业级全栈管理后台模板，采用 Go（Fiber）后端与 Vite\u002FReact 前端分离架构。核心功能包括基于 JWT 的多设备认证、RBAC 权限模型（支持 scope 分级与角色级 TOTP 2FA）、用户全生命周期管理、审计日志、系统通知（含 FCM 推送）、公告系统及 MinIO\u002FS3 兼容存储集成；技术上通过 Vite 代理统一 API 域名规避 CORS，共享 HTTP 协议约定（路径、错误码、Cookie 行为），确保前后端解耦但契约一致。适用于需要快速搭建合规、可扩展内部管理平台的中后台系统场景，如 SaaS 运营后台、企业内部工具或政府\u002F教育类管理系统。",2,"2026-11-24 04:49:16","CREATED_QUERY"]