{"id":50275776,"url":"https://github.com/rootcode-creator/match-vault","last_synced_at":"2026-05-27T20:03:54.781Z","repository":{"id":350768776,"uuid":"1032556182","full_name":"rootcode-creator/match-vault","owner":"rootcode-creator","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-28T12:18:40.000Z","size":944,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-28T12:27:25.857Z","etag":null,"topics":["nextjs","node-js","realtime-communiation","social-login"],"latest_commit_sha":null,"homepage":"https://match-vault.kawserahmed.tech","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rootcode-creator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-08-05T13:31:42.000Z","updated_at":"2026-04-28T12:18:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rootcode-creator/match-vault","commit_stats":null,"previous_names":["rootcode-creator/match-vault"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rootcode-creator/match-vault","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootcode-creator%2Fmatch-vault","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootcode-creator%2Fmatch-vault/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootcode-creator%2Fmatch-vault/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootcode-creator%2Fmatch-vault/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rootcode-creator","download_url":"https://codeload.github.com/rootcode-creator/match-vault/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootcode-creator%2Fmatch-vault/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33581601,"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-05-27T02:00:06.184Z","response_time":53,"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":["nextjs","node-js","realtime-communiation","social-login"],"created_at":"2026-05-27T20:03:53.726Z","updated_at":"2026-05-27T20:03:54.772Z","avatar_url":"https://github.com/rootcode-creator.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"./src/app/favicon.ico\" alt=\"match-vault logo\" width=\"92\" height=\"92\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003ematch-vault\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\u003ci\u003eRole-aware matchmaking app powered by Next.js, Prisma, Auth.js, and Pusher.\u003c/i\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/VERSION-1.0.0-E11D48?style=for-the-badge\u0026logo=semanticrelease\u0026logoColor=white\u0026labelColor=7F1D1D\" alt=\"Version 1.0.0\" /\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/LICENSE-MIT-84CC16?style=for-the-badge\u0026logo=opensourceinitiative\u0026logoColor=white\u0026labelColor=14532D\" alt=\"MIT License\" /\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/TYPE-MATCHMAKING-8B5CF6?style=for-the-badge\u0026labelColor=4C1D95\" alt=\"Matchmaking app\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/NEXT.JS-16-14B8A6?style=for-the-badge\u0026logo=next.js\u0026logoColor=white\u0026labelColor=0F766E\" alt=\"Next.js\" /\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/REACT-19-06B6D4?style=for-the-badge\u0026logo=react\u0026logoColor=white\u0026labelColor=155E75\" alt=\"React\" /\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/TYPESCRIPT-5-3B82F6?style=for-the-badge\u0026logo=typescript\u0026logoColor=white\u0026labelColor=1E3A8A\" alt=\"TypeScript\" /\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/PRISMA-ORM-6366F1?style=for-the-badge\u0026logo=prisma\u0026logoColor=white\u0026labelColor=4338CA\" alt=\"Prisma\" /\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/POSTGRESQL-DATABASE-0EA5E9?style=for-the-badge\u0026logo=postgresql\u0026logoColor=white\u0026labelColor=1E40AF\" alt=\"PostgreSQL\" /\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/AUTH.JS-V5-7C3AED?style=for-the-badge\u0026logo=auth0\u0026logoColor=white\u0026labelColor=5B21B6\" alt=\"Auth.js\" /\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/PUSHER-REALTIME-A855F7?style=for-the-badge\u0026logo=pusher\u0026logoColor=white\u0026labelColor=6D28D9\" alt=\"Pusher\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"#-project-intro\"\u003e\u003cimg src=\"https://img.shields.io/badge/EXPLORE-PROJECT%20INTRO-6366F1?style=for-the-badge\u0026logo=gitbook\u0026logoColor=white\u0026labelColor=4F46E5\" alt=\"Project intro\" /\u003e\u003c/a\u003e\n\t\u003ca href=\"#-install-methods\"\u003e\u003cimg src=\"https://img.shields.io/badge/SETUP-INSTALL%20GUIDE-14B8A6?style=for-the-badge\u0026logo=readme\u0026logoColor=white\u0026labelColor=0F766E\" alt=\"Install guide\" /\u003e\u003c/a\u003e\n\t\u003ca href=\"#-available-scripts\"\u003e\u003cimg src=\"https://img.shields.io/badge/RUN-SCRIPTS-A855F7?style=for-the-badge\u0026logo=files\u0026logoColor=white\u0026labelColor=7E22CE\" alt=\"Scripts\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## match-vault — README\n\nModern full-stack matchmaking application built with Next.js App Router, Prisma, PostgreSQL, NextAuth v5, and real-time messaging/notifications with Pusher.\n\n## Table of Contents\n\n- [🚀 Project intro](#-project-intro)\n- [📁 Project structure](#-project-structure)\n- [⭐ Differentiators](#-differentiators)\n- [🔧 Features](#-features)\n- [🧰 Tech stack](#-tech-stack)\n- [⚙️ Install methods](#️-install-methods)\n\t- [📦 npm / Node](#-npm--node)\n- [🔐 Environment variables](#-environment-variables)\n- [🗄️ Database structure](#️-database-structure)\n- [📜 Available scripts](#-available-scripts)\n- [🚀 Deployment notes](#-deployment-notes)\n- [🤝 Contributing](#-contributing)\n- [📄 License](#-license)\n\n## 🚀 Project intro\n\n`match-vault` is a role-aware matchmaking platform with:\n\n- Email/password + social authentication (Google/GitHub)\n- Profile onboarding and completion flow\n- Member discovery with filters/pagination\n- Likes (including mutual likes)\n- Real-time chat and real-time notifications\n- FaceTime-style video calling with scheduled and instant meeting flows\n- Admin photo moderation\n\nIt is designed as an MVP-friendly production-ready foundation for social/match applications.\n\n## 📁 Project structure\n\n```txt\nmatch-vault/\n├── prisma/\n│   ├── schema.prisma\n│   ├── seed.ts\n│   └── migrations/\n├── public/\n│   └── images/\n├── scripts/\n│   ├── checkCounts.js\n│   └── with-db-env.mjs\n├── src/\n│   ├── app/\n│   │   ├── (auth)/               # login/register/verify/reset/profile-complete\n│   │   ├── actions/              # server actions (auth/member/like/message/admin)\n│   │   ├── admin/moderation/\n│   │   ├── api/                  # auth, health, pusher-auth, sign-image\n│   │   ├── lists/\n│   │   ├── members/\n│   │   └── messages/\n│   ├── components/\n│   ├── hooks/\n│   ├── lib/\n│   ├── auth.ts\n│   ├── auth.config.ts\n│   ├── middleware.ts\n│   └── routes.ts\n├── package.json\n└── README.md\n```\n\n## ⭐ Differentiators\n\n- Server Actions first approach for core domain operations\n- Auth.js + Prisma adapter with role and profile-completion-aware middleware guards\n- Real-time UX via Pusher (chat updates, likes, presence-style notifications)\n- Practical Neon/Vercel database env fallback handling (`DATABASE_URL`/`DIRECT_URL` auto-resolution)\n- Admin moderation workflow for uploaded photos\n\n## 🔧 Features\n\n### Core features\n\n| Feature | Status | Notes |\n| --- | --- | --- |\n| Credentials auth | ✅ Current | Register, login, email verification, password reset |\n| Social auth | ✅ Current | Google + GitHub providers (optional via env vars) |\n| Profile completion flow | ✅ Current | OAuth users are redirected until profile is completed |\n| Member browsing | ✅ Current | Filter by age/gender/photo + pagination |\n| Likes \u0026 lists | ✅ Current | Source likes, target likes, mutual likes |\n| Messaging | ✅ Current | Real-time thread updates + inbox/outbox view |\n| Video calling | ✅ Current | FaceTime meetings with instant creation, scheduling, and join links |\n| Photo uploads | ✅ Current | Cloudinary upload + signed API route |\n| Admin moderation | ✅ Current | Approve/reject pending photos |\n\n### Route protection behavior\n\n- Public route: `/`\n- Auth routes: `/login`, `/register`, `/register/success`, `/verify-email`, `/forgot-password`, `/reset-password`\n- All other app routes require authentication\n- `/admin/*` routes require `ADMIN` role\n- OAuth users with incomplete profile are redirected to `/profile-complete`\n\n## 🧰 Tech stack\n\n- **Framework:** Next.js 16 (App Router), React 19, TypeScript\n- **Auth:** NextAuth/Auth.js v5 + Prisma Adapter\n- **Database:** PostgreSQL + Prisma ORM\n- **UI:** HeroUI + Tailwind CSS 4\n- **Forms/Validation:** React Hook Form + Zod\n- **Realtime:** Pusher + pusher-js\n- **Video calling:** Stream Video React SDK + Stream Node SDK\n- **Media:** Cloudinary + next-cloudinary\n- **Email:** Resend\n\n## ⚙️ Install methods\n\n### 📦 npm / Node\n\nPrerequisites:\n\n- Node.js 20+\n- PostgreSQL database (local or hosted, e.g. Neon)\n\n```bash\ngit clone \u003cyour-repo-url\u003e match-vault\ncd match-vault\nnpm install\n```\n\n1) Create your `.env` file (see [Environment variables](#-environment-variables)).\n\n2) Apply migrations:\n\n```bash\nnpx prisma migrate dev\n```\n\n3) Seed sample data:\n\n```bash\nnpx prisma db seed\n```\n\n### Resetting the Database\n\nTo clear and reset the database:\n\n- **Recommended (restore all sample data including meetings):**\n  ```bash\n  npm run db:reset\n  ```\n  This resets the schema and re-seeds all users, admin, and FaceTime meeting fixtures.\n\n- **Quick reset without seeding:**\n  ```bash\n  npx prisma migrate reset --skip-seed\n  ```\n  ⚠️ This will drop all data including user accounts and scheduled meetings (no data is restored automatically).\n\n- **Just seed data (if database is already migrated):**\n  ```bash\n  npx prisma db seed\n  ```\n  This clears and re-creates all sample users and FaceTime meetings.\n\n4) Start development server:\n\n```bash\nnpm run dev\n```\n\nOpen `http://localhost:3000`.\n\n## 🔐 Environment variables\n\nCreate a `.env` in project root:\n\n```env\n# Database (minimum)\nDATABASE_URL=\"postgresql://...\"\nDIRECT_URL=\"postgresql://...\"\n\n# Optional DB fallbacks supported by this repo\nPOSTGRES_PRISMA_URL=\"\"\nPOSTGRES_URL=\"\"\nPOSTGRES_URL_NON_POOLING=\"\"\nNEON_DATABASE_URL=\"\"\nNEON_POSTGRES_URL=\"\"\n\n# Auth.js / NextAuth\nAUTH_SECRET=\"your-random-secret\"\nNEXTAUTH_URL=\"http://localhost:3000\"\n\n# Credentials email flows\nRESEND_API_KEY=\"\"\nNEXT_PUBLIC_BASE_URL=\"http://localhost:3000\"\n\n# Optional social providers\nGOOGLE_CLIENT_ID=\"\"\nGOOGLE_CLIENT_SECRET=\"\"\nGITHUB_CLIENT_ID=\"\"\nGITHUB_CLIENT_SECRET=\"\"\n\n# Cloudinary (upload + signature)\nNEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=\"\"\nNEXT_PUBLIC_CLOUDINARY_API_KEY=\"\"\nCLOUDINARY_API_SECRET=\"\"\n\n# Pusher (real-time)\nPUSHER_APP_ID=\"\"\nNEXT_PUBLIC_PUSHER_APP_KEY=\"\"\nPUSHER_APP_SECRET=\"\"\n\n# Optional diagnostics\nDEBUG_ERRORS=\"false\"\n```\n\nNotes:\n\n- `src/lib/prisma.ts` and `scripts/with-db-env.mjs` auto-map several Vercel/Neon env names into `DATABASE_URL` and `DIRECT_URL`.\n- If Pusher env vars are missing, real-time features will fail where server/client instances are required.\n\n## 🗄️ Database structure\n\nPrisma models in this repo:\n\n- `User` (role, profile completion, auth data)\n- `Member` (public profile, demographic details)\n- `Photo` (member media + moderation state)\n- `Like` (source/target relation; composite PK)\n- `Message` (thread messages with soft-delete flags)\n- `Token` (email verification + password reset tokens)\n- `Account` (OAuth account linkage)\n\nEnums:\n\n- `Role`: `ADMIN`, `MEMBER`\n- `TokenType`: `VERIFICATION`, `PASSWORD_RESET`\n\n## 📜 Available scripts\n\n```bash\nnpm run dev            # start dev server\nnpm run build          # production build\nnpm run start          # run production server\nnpm run lint           # lint project\nnpm run vercel-build   # prisma generate + migrate deploy + seed + build\n```\n\nUtility scripts:\n\n- `node scripts/checkCounts.js` — quick sanity counts for `User` and `Member`\n- `node scripts/with-db-env.mjs \u003ccommand\u003e` — run command with DB env fallbacks resolved\n\n## 🚀 Deployment notes\n\n- The `vercel-build` script is configured for deploy-time Prisma generation, migration, seeding, and Next.js build.\n- Seed creates demo users and an admin account:\n\t- Admin email: `admin@test.com`\n\t- Default seed password: `password`\n- Rotate seed credentials and production secrets before public deployment.\n\n## 🤝 Contributing\n\n- Fork the repository and create a feature branch.\n- Keep pull requests focused and include verification steps.\n- Never commit secrets or real credentials.\n\n## 📄 License\n\nThis project is licensed under the MIT License.\nSee the `LICENSE` file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootcode-creator%2Fmatch-vault","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frootcode-creator%2Fmatch-vault","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootcode-creator%2Fmatch-vault/lists"}