{"id":30848261,"url":"https://github.com/peterkyle01/sarhtaskhub","last_synced_at":"2026-04-28T12:02:13.012Z","repository":{"id":313058116,"uuid":"1034304320","full_name":"peterkyle01/sarhtaskhub","owner":"peterkyle01","description":"Modern Client Management System","archived":false,"fork":false,"pushed_at":"2025-09-03T16:04:09.000Z","size":1247,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-30T13:55:12.364Z","etag":null,"topics":["drizzle-orm","neondb","nextjs15","payloadcms-v3","postgresql","vercel"],"latest_commit_sha":null,"homepage":"https://sarhtaskhub.vercel.app","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/peterkyle01.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":"2025-08-08T07:13:56.000Z","updated_at":"2025-09-03T16:04:13.000Z","dependencies_parsed_at":"2026-02-05T05:13:48.438Z","dependency_job_id":null,"html_url":"https://github.com/peterkyle01/sarhtaskhub","commit_stats":null,"previous_names":["peterkyle01/sarhtaskhub"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peterkyle01/sarhtaskhub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterkyle01%2Fsarhtaskhub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterkyle01%2Fsarhtaskhub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterkyle01%2Fsarhtaskhub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterkyle01%2Fsarhtaskhub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterkyle01","download_url":"https://codeload.github.com/peterkyle01/sarhtaskhub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterkyle01%2Fsarhtaskhub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32379629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","neondb","nextjs15","payloadcms-v3","postgresql","vercel"],"created_at":"2025-09-07T03:07:28.025Z","updated_at":"2026-04-28T12:02:12.997Z","avatar_url":"https://github.com/peterkyle01.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SarhTaskHub\n\nA comprehensive task management platform built with **Next.js 15**, **PayloadCMS 3.0**, and **PostgreSQL**. SarhTaskHub facilitates seamless collaboration between tutors, clients, and administrators in an educational environment.\n\n## 🚀 Features\n\n- **Multi-Role Authentication**: Support for Super Admins, Admins, Tutors, and Clients\n- **Task Management**: Create, assign, and track educational tasks with scoring\n- **Subject \u0026 Topic Organization**: Hierarchical organization of educational content\n- **Role-Based Access Control**: Granular permissions for different user types\n- **Modern UI**: Built with Tailwind CSS and Radix UI components\n- **Type-Safe**: Full TypeScript support with auto-generated types\n- **Cloud Storage**: Integrated Vercel Blob storage for media files\n- **Responsive Design**: Mobile-first design approach\n\n## 🏗️ Tech Stack\n\n- **Frontend**: Next.js 15, React 19, TypeScript\n- **Backend**: PayloadCMS 3.0, PostgreSQL\n- **Styling**: Tailwind CSS 4.0, Radix UI\n- **Storage**: Vercel Blob Storage\n- **Testing**: Vitest, Playwright\n- **Package Manager**: pnpm\n\n## 📋 Prerequisites\n\n- Node.js (^18.20.2 || \u003e=20.9.0)\n- pnpm (^9 || ^10)\n- PostgreSQL database\n- Vercel Blob Storage token (for file uploads)\n\n## 🔧 Installation\n\n1. **Clone the repository**\n\n   ```bash\n   git clone https://github.com/peterkyle01/sarhtaskhub.git\n   cd sarhtaskhub\n   ```\n\n2. **Install dependencies**\n\n   ```bash\n   pnpm install\n   ```\n\n3. **Environment Setup**\n\n   ```bash\n   cp .env.example .env\n   ```\n\n   Configure the following environment variables:\n\n   ```env\n   PAYLOAD_SECRET=your_secret_key\n   DATABASE_URI=postgresql://user:password@localhost:5432/sarhtaskhub\n   BLOB_READ_WRITE_TOKEN=your_vercel_blob_token\n   ```\n\n4. **Run database migrations**\n\n   ```bash\n   pnpm payload migrate\n   ```\n\n5. **Start the development server**\n\n   ```bash\n   pnpm dev\n   ```\n\n6. **Access the application**\n   - Frontend: http://localhost:3000\n   - Admin Panel: http://localhost:3000/superadmin\n\n## 🐳 Docker Development\n\nFor containerized development:\n\n1. **Start the database**\n\n   ```bash\n   docker-compose up -d\n   ```\n\n2. **Update your `.env` file**\n\n   ```env\n   DATABASE_URI=postgresql://user:password@127.0.0.1:5432/sarhtaskhub\n   ```\n\n3. **Run the application**\n   ```bash\n   pnpm dev\n   ```\n\n## 🏛️ Project Structure\n\n```\nsrc/\n├── app/                    # Next.js app directory\n│   ├── (frontend)/        # Frontend routes\n│   │   ├── admin/         # Admin dashboard\n│   │   └── tutor/         # Tutor dashboard\n│   └── (payload)/         # PayloadCMS admin\n├── collections/           # PayloadCMS collections\n│   ├── Admins.ts\n│   ├── Clients.ts\n│   ├── Tasks.ts\n│   ├── Tutors.ts\n│   └── ...\n├── components/            # Reusable components\n│   ├── custom/           # Custom components\n│   └── ui/               # UI components\n├── server-actions/        # Next.js server actions\n└── styles/               # Global styles\n```\n\n## 👥 User Roles\n\n- **Super Admins**: Full system access and user management\n- **Admins**: Manage tutors, clients, tasks, and subjects\n- **Tutors**: View and update assigned tasks, manage profile\n- **Clients**: Task recipients (no authentication required)\n\n## 📊 Collections\n\n- **Tasks**: Educational assignments with scoring and status tracking\n- **Tutors**: Authenticated educators with subject specializations\n- **Clients**: Task recipients and students\n- **Subjects**: Educational subjects (Math, Science, etc.)\n- **Topics**: Hierarchical topic organization within subjects\n- **Media**: File uploads and media management\n\n## 🧪 Testing\n\n- **Unit Tests**: `pnpm test`\n- **E2E Tests**: `pnpm test:e2e`\n- **Type Checking**: `pnpm type-check`\n- **Linting**: `pnpm lint`\n\n## 🚀 Deployment\n\n1. **Build the application**\n\n   ```bash\n   pnpm build\n   ```\n\n2. **Start production server**\n   ```bash\n   pnpm start\n   ```\n\n## 📝 Scripts\n\n- `pnpm dev` - Start development server\n- `pnpm build` - Build for production\n- `pnpm start` - Start production server\n- `pnpm lint` - Run ESLint\n- `pnpm test` - Run unit tests\n- `pnpm payload migrate:create` - Create new migration\n- `pnpm generate:types` - Generate TypeScript types\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Add tests if applicable\n5. Submit a pull request\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🆘 Support\n\nFor questions, issues, or feature requests, please:\n\n- Open an issue on GitHub\n- Contact the development team\n- Check the PayloadCMS documentation for CMS-related questions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterkyle01%2Fsarhtaskhub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterkyle01%2Fsarhtaskhub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterkyle01%2Fsarhtaskhub/lists"}