{"id":43255946,"url":"https://github.com/iamgerwin/csharp_sveltekit_commentable_project","last_synced_at":"2026-02-01T13:33:08.634Z","repository":{"id":324210515,"uuid":"1096374642","full_name":"iamgerwin/csharp_sveltekit_commentable_project","owner":"iamgerwin","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-14T11:33:13.000Z","size":310,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-14T13:18:01.337Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Svelte","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/iamgerwin.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-11-14T10:31:38.000Z","updated_at":"2025-11-14T11:22:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/iamgerwin/csharp_sveltekit_commentable_project","commit_stats":null,"previous_names":["iamgerwin/csharp_sveltekit_commentable_project"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/iamgerwin/csharp_sveltekit_commentable_project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgerwin%2Fcsharp_sveltekit_commentable_project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgerwin%2Fcsharp_sveltekit_commentable_project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgerwin%2Fcsharp_sveltekit_commentable_project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgerwin%2Fcsharp_sveltekit_commentable_project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamgerwin","download_url":"https://codeload.github.com/iamgerwin/csharp_sveltekit_commentable_project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgerwin%2Fcsharp_sveltekit_commentable_project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28979126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T12:13:08.691Z","status":"ssl_error","status_checked_at":"2026-02-01T12:13:08.356Z","response_time":56,"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":[],"created_at":"2026-02-01T13:33:07.319Z","updated_at":"2026-02-01T13:33:08.622Z","avatar_url":"https://github.com/iamgerwin.png","language":"Svelte","readme":"# C# SvelteKit Commentable Project\n\nA production-ready MonoRepo project with C# .NET 9 backend and SvelteKit frontend implementing a comprehensive comments CRUD system with polymorphic relationships.\n\n## Project Architecture\n\n```\ncsharp_sveltekit_commentable_project/\n├── apps/\n│   ├── api/          # C# .NET 9 REST API with Swagger/OpenAPI\n│   └── web/          # SvelteKit 2.48.4 Frontend\n├── packages/\n│   ├── shared-enums/      # Shared TypeScript/C# enums\n│   ├── shared-types/      # Shared TypeScript types\n│   └── shared-constants/  # Shared constants\n└── docs/             # Project documentation \u0026 diagrams\n```\n\n## Tech Stack\n\n### Backend (API)\n- **Runtime**: .NET 9 (C# 13)\n- **Database**: PostgreSQL with Entity Framework Core 9.0\n- **Caching**: Redis (Distributed Cache)\n- **Documentation**: Swagger/OpenAPI (Swashbuckle 6.5.0)\n- **Patterns**: Repository Pattern, SOLID Principles, Unit of Work\n- **Architecture**: Clean Architecture, Dependency Injection\n\n### Frontend (Web)\n- **Framework**: SvelteKit 2.48.4\n- **Language**: TypeScript\n- **Styling**: TailwindCSS\n- **State Management**: Svelte Stores\n\n### Infrastructure\n- **MonoRepo**: Turborepo\n- **Package Manager**: npm workspaces\n- **Documentation**: Mermaid diagrams\n\n## Features\n\n### Core Features\n- **Polymorphic Comments System**: Comments can be attached to Videos, Posts, or other entities\n- **User Management**: User authentication and profile management\n- **CRUD Operations**: Full Create, Read, Update, Delete for all entities\n\n### Advanced Features\n- **Reactions System**: Multiple reaction types (Like, Dislike, Love, Clap, etc.)\n- **Report Comments**: Flag inappropriate comments with categories\n- **Pagination**: Efficient pagination to prevent N+1 queries\n- **Caching**: Multi-level caching strategy (Redis, Memory)\n- **Queue System**: Background job processing for heavy operations\n\n## Getting Started\n\n### Prerequisites\n- Node.js \u003e= 20.0.0\n- .NET SDK 9.0 or 10.0\n- PostgreSQL 16+\n- Redis 7+\n\n### Quick Links\n- **API Documentation (Swagger)**: `http://localhost:5043/api/swagger`\n- **Web App**: `http://localhost:5173` (or 5174)\n- **Health Check**: `http://localhost:5043/api/v1/health`\n- **Example Endpoints**: `http://localhost:5043/api/v1/Example/reaction-types`\n\n### Installation\n\n1. **Clone the repository**\n```bash\ngit clone \u003crepository-url\u003e\ncd csharp_nextjs_commentable_project\n```\n\n2. **Install dependencies**\n```bash\nnpm install\n```\n\n3. **Set up environment variables**\n```bash\n# Copy example env files\ncp apps/api/.env.example apps/api/.env\ncp apps/web/.env.example apps/web/.env\n```\n\n4. **Run database migrations**\n```bash\ncd apps/api\ndotnet ef database update\n```\n\n5. **Start development servers**\n```bash\n# Start all services\nnpm run dev\n\n# Or run individually\nnpm run api:dev  # API only\nnpm run web:dev  # Web only\n```\n\n## Development\n\n### Available Scripts\n\n- `npm run dev` - Start all services in development mode\n- `npm run build` - Build all applications\n- `npm run test` - Run all tests\n- `npm run lint` - Lint all code\n- `npm run format` - Format code with Prettier\n- `npm run clean` - Clean all build artifacts\n\n### Project Structure Details\n\nSee individual README files in each directory:\n- [API Documentation](./apps/api/README.md)\n- [Web Documentation](./apps/web/README.md)\n- [Architecture Documentation](./docs/README.md)\n\n## Database Schema\n\nSee [Entity Relationship Diagram](./docs/erd.md) for detailed database structure.\n\n## Best Practices Implemented\n\n- **SOLID Principles**: Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion\n- **Design Patterns**: Repository, Unit of Work, Factory, Strategy, Dependency Injection\n- **Performance**: Caching layers, query optimization, N+1 prevention, pagination\n- **Code Quality**: No code smells, proper separation of concerns, comprehensive documentation\n- **Type Safety**: Shared enums and types between frontend and backend\n- **Scalability**: Queue system for async operations, distributed caching\n\n## Contributing\n\nFollow conventional commits format for all commit messages.\n\n## License\n\nMIT License\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamgerwin%2Fcsharp_sveltekit_commentable_project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamgerwin%2Fcsharp_sveltekit_commentable_project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamgerwin%2Fcsharp_sveltekit_commentable_project/lists"}