{"id":34719134,"url":"https://github.com/clifftech123/dotnetcore-graphql","last_synced_at":"2026-05-06T00:02:39.416Z","repository":{"id":301767246,"uuid":"1008194871","full_name":"Clifftech123/dotnetcore-graphql","owner":"Clifftech123","description":"This project demonstrates how to use GraphQL with .NET Core, showcasing a complete implementation of a course management system with students, courses, and course modules.","archived":false,"fork":false,"pushed_at":"2025-07-09T08:51:48.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-26T12:47:49.842Z","etag":null,"topics":["chsarp","dotnet","graphql"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Clifftech123.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}},"created_at":"2025-06-25T07:10:25.000Z","updated_at":"2025-07-09T08:51:51.000Z","dependencies_parsed_at":"2025-06-28T18:33:37.605Z","dependency_job_id":"ec192b59-c37a-4fe5-b82b-2729edcbaa39","html_url":"https://github.com/Clifftech123/dotnetcore-graphql","commit_stats":null,"previous_names":["clifftech123/dotnetcore-graphql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Clifftech123/dotnetcore-graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clifftech123%2Fdotnetcore-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clifftech123%2Fdotnetcore-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clifftech123%2Fdotnetcore-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clifftech123%2Fdotnetcore-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clifftech123","download_url":"https://codeload.github.com/Clifftech123/dotnetcore-graphql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clifftech123%2Fdotnetcore-graphql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32672682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"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":["chsarp","dotnet","graphql"],"created_at":"2025-12-25T01:29:51.819Z","updated_at":"2026-05-06T00:02:39.402Z","avatar_url":"https://github.com/Clifftech123.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .NET Core GraphQL Demo\n\nThis project demonstrates how to use GraphQL with .NET Core, showcasing a complete implementation of a course management system with students, courses, and course modules.\n\n## 🚀 Features\n\n- **GraphQL API** with Hot Chocolate\n- **Entity Framework Core** with SQLite database\n- **Domain-Driven Design** architecture\n- **CRUD Operations** for Courses, Students, and Course Modules\n- **Real-time Subscriptions** for course updates\n- **Error Handling** with proper GraphQL error responses\n- **Filtering, Sorting, and Projections** support\n\n## 🏗️ Project Structure\n\n```\nsrc/\n├── Data/                           # Database context and configurations\n│   └── ApplicationDbContext.cs\n├── Domain/\n│   ├── Configurations/             # Entity Framework configurations\n│   │   ├── CourseConfiguration.cs\n│   │   ├── CourseModuleConfiguration.cs\n│   │   └── StudentConfiguration.cs\n│   ├── Contracts/                  # DTOs, Inputs, and Payloads\n│   │   ├── CourseDTO.cs\n│   │   ├── CourseInputs.cs\n│   │   └── CoursePayloads.cs\n│   ├── Enum/                       # Domain enumerations\n│   │   └── ModuleStatus.cs\n│   └── Model/                      # Domain entities\n│       ├── Course.cs\n│       ├── CourseModule.cs\n│       └── Student.cs\n├── Extensions/                     # Service registration extensions\n│   └── ServiceExtensions.cs\n└── GraphqlApi/                     # GraphQL schema definitions\n    ├── Common/                     # Shared GraphQL components\n    │   ├── Payload.cs\n    │   ├── StudentsQuery.cs\n    │   └── UserError.cs\n    ├── Mutations/                  # GraphQL mutations\n    │   └── CourseMutations.cs\n    └── Subscriptions/              # GraphQL subscriptions\n        └── CourseModuleSubscription.cs\n```\n\n## 🛠️ Technologies Used\n\n- **.NET 9.0**\n- **Hot Chocolate GraphQL** - GraphQL server implementation\n- **Entity Framework Core** - ORM for database operations\n- **SQLite** - Lightweight database for development\n- **C# 12** - Latest language features\n\n## 📋 Prerequisites\n\n- .NET 9.0 SDK or later\n- Visual Studio 2022 or VS Code\n- SQLite (included with EF Core)\n\n## 🚀 Getting Started\n\n### 1. Clone the Repository\n\n```bash\ngit https://github.com/Clifftech123/dotnetcore-graphql.git\ncd dotnetcore-graphql\n```\n\n### 2. Restore Dependencies\n\n```bash\ndotnet restore\n```\n\n### 3. Run Database Migrations\n\n```bash\ndotnet ef database update\n```\n\n### 4. Run the Application\n\n```bash\ndotnet run\n```\n\n### 5. Access GraphQL Playground\n\nNavigate to `https://localhost:5001/graphql` to access the GraphQL playground and explore the API.\n\n## 📊 GraphQL Schema\n\n### Queries\n\n- **courses** - Get all courses with filtering and sorting\n- **students** - Get all students with their enrolled courses\n\n### Mutations\n\n- **createCourse** - Create a new course\n- **addModuleToCourse** - Add a module to an existing course\n- **enrollStudent** - Enroll a student in a course\n\n### Subscriptions\n\n- **onCourseModuleUpdated** - Real-time updates when course modules chang\n\n\n## 🏛️ Architecture Highlights\n\n### Domain-Driven Design\n\n- **Entities** with proper encapsulation and business logic\n- **Value Objects** and **Enumerations** for type safety\n- **Domain Services** for complex business operations\n\n### GraphQL Best Practices\n\n- **Payload Pattern** for mutations with error handling\n- **DataLoader** pattern for efficient data fetching\n- **Filtering and Sorting** capabilities\n- **Real-time Subscriptions** for live updates\n\n\n\n## 📝 Database Schema\n\nThe application uses the following main entities:\n\n- **Course** - Represents a course with title and modules\n- **CourseModule** - Individual modules within a course with status tracking\n- **Student** - Students who can enroll in courses\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 👨‍💻 Author\n\n**Cliff Tech** - [GitHub Profile](https://github.com/Clifftech123)\n\n## 🙏 Acknowledgments\n\n- Hot Chocolate GraphQL team for the excellent GraphQL implementation\n- Microsoft for Entity Framework Core\n- The .NET community for continuous inspiration\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclifftech123%2Fdotnetcore-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclifftech123%2Fdotnetcore-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclifftech123%2Fdotnetcore-graphql/lists"}