{"id":25947431,"url":"https://github.com/th92rodr/dev.stage","last_synced_at":"2026-03-09T10:01:39.240Z","repository":{"id":280304928,"uuid":"941567523","full_name":"th92rodr/dev.stage","owner":"th92rodr","description":"Event subscription and referral system - track invites, clicks, and leaderboards. Built with Fastify, PostgreSQL, Redis, and Next.js.","archived":false,"fork":false,"pushed_at":"2025-10-01T19:42:19.000Z","size":444,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-01T21:26:54.875Z","etag":null,"topics":["drizzle-orm","event-management","fastify","nextjs","postgresql","redis","referral-system","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/th92rodr.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-03-02T15:49:07.000Z","updated_at":"2025-10-01T19:42:23.000Z","dependencies_parsed_at":"2025-03-02T16:34:15.367Z","dependency_job_id":"1804cba0-9fb7-411b-944f-4b9fccb0596a","html_url":"https://github.com/th92rodr/dev.stage","commit_stats":null,"previous_names":["th92rodr/dev.stage"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/th92rodr/dev.stage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th92rodr%2Fdev.stage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th92rodr%2Fdev.stage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th92rodr%2Fdev.stage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th92rodr%2Fdev.stage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/th92rodr","download_url":"https://codeload.github.com/th92rodr/dev.stage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th92rodr%2Fdev.stage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30290904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"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":["drizzle-orm","event-management","fastify","nextjs","postgresql","redis","referral-system","tailwindcss"],"created_at":"2025-03-04T10:19:29.304Z","updated_at":"2026-03-09T10:01:39.231Z","avatar_url":"https://github.com/th92rodr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"web/src/assets/logo.svg\" alt=\"dev stage logo\" height=\"80\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eDevStage — Event Referral System\u003c/h1\u003e\n\nDevStage is a full application that implements an **event subscription and referral system**.  \nIt allows people to register for an event, share personal invite links, and compete on a leaderboard based on successful referrals.\n\nThis monorepo contains:\n\n- **[`server/`](./server/README.md)** → Backend API built with **Node.js, Fastify, PostgreSQL, Redis, Drizzle ORM, TypeScript**  \n- **[`web/`](./web/README.md)** → Frontend app built with **Next.js, React.js, Tailwind CSS, TypeScript**  \n\n---\n\n## 🎯 Features\n\n### Backend\n\n- Subscribe to an event with **duplicate email handling**  \n- Track **invite link clicks** (Redis)  \n- Track **successful referrals** (Redis sorted set)  \n- Show **leaderboard** with top referrers  \n- Swagger auto-docs at `/docs`\n\n### Frontend\n\n- Landing page with **event details** + **signup form**  \n- Referral page with:\n  - Personalized **invite link** (copy to clipboard)  \n  - **Stats**: clicks, referrals, ranking position  \n  - **Leaderboard** with medals for top 3\n\n### Tech Stack\n\n- **Backend**: Node, Fastify, TypeScript, Drizzle ORM, PostgreSQL, Redis, Swagger, Zod  \n- **Frontend**: Next.js (App Router), React, TypeScript, Tailwind CSS, React Hook Form, Zod, Orval  \n- **Infra**: Docker, PostgreSQL, Redis\n\n\u003cimg src=\"https://skillicons.dev/icons?i=nodejs,ts,docker,postgres,redis,nextjs,react,tailwind\u0026theme=dark\" alt=\"tech stack\" height=\"40\" /\u003e\n\n---\n\n## 🏗️ Project Structure\n\n```\ndev.stage/\n├── server/         # Backend API\n│   ├── src/\n│   │   ├── database/   # Drizzle schema \u0026 migrations\n│   │   ├── redis/      # Redis connection\n│   │   ├── routes/     # Fastify routes (REST API)\n│   │   ├── usecases/   # Business logic\n│   │   ├── env.ts      # Read environment variables\n│   │   └── server.ts   # Fastify server entry\n│   └── tools/          # Docker Compose, API test file\n│\n├── web/            # Frontend App\n│   ├── src/\n│   │   ├── app/        # Next.js app router pages\n│   │   ├── assets/     # Page logo and icons\n│   │   ├── http/       # API client functions\n│   │   └── components/ # Shared UI components\n│   └── public/         # Static files\n│\n├── docs/           # Project layout images\n└── README.md       # Project documentation\n```\n\n---\n\n## 🖌️ Layout\n\n### 💻 Desktop\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg alt=\"dev stage landing page\" src=\"docs/desktop-landing-page.png\" height=\"250\"\u003e\n  \u003cimg alt=\"dev stage invite page\" src=\"docs/desktop-invite-page.png\" height=\"250\"\u003e\n\u003c/div\u003e\n\n### 📱 Mobile\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg alt=\"dev stage landing page\" src=\"docs/mobile-landing-page.png\" height=\"350\"\u003e\n  \u003cimg alt=\"dev stage invite page\" src=\"docs/mobile-invite-page.png\" height=\"350\"\u003e\n\u003c/div\u003e\n\n---\n\n## 📜 License\n\nThis project is licensed under the **BSD 3-Clause License**.\n\n---\n\n## 👤 Author\n\n[**@th92rodr**](https://github.com/th92rodr)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fth92rodr%2Fdev.stage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fth92rodr%2Fdev.stage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fth92rodr%2Fdev.stage/lists"}