You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Star2Β (2)You must be signed in to star a repository
About
Open-source enterprise HRMS with shift scheduling, gamification points, and digital rewards built on .NET 10 & Angular 18. https://hr-system-rosy.vercel.app/
An enterprise-grade open-source HR Management System built with .NET 10 Clean Architecture and Angular 18+ (Signals & Standalone Components). Buy2 HRMS provides advanced multi-branch site management, role-based access control (RBAC), intelligent shift scheduling, open shift market, automated points ledger & rewards voucher store, employee request approvals, and corporate social engagement with news feeds, threaded discussions, emoji reactions, and peer recognitions.
π Project Milestones & Module Status
Feature Module
Backend Status
Frontend Status
Test Coverage
Key Capabilities
Domain & Persistence Foundation
β Done
N/A
100%
25+ Entities, EF Core 10, UoW, Generic Repositories, Migrations
Authentication & Identity
β Done
β Done
100%
JWT Bearer, Self-Service Password Reset, Role Claims
CQRS Master Orchestrator Pattern: Multi-step workflows coordinate sub-queries and sub-commands through MediatR; sub-handlers never trigger SaveChangesAsync directly to ensure single atomic transactions.
Read-Side Optimization: Read queries strictly leverage .AsNoTracking() and database-level projections to optimize throughput and memory footprints.
Resilient Rollbacks: Atomic transactions pass CancellationToken.None during catch-block rollbacks to guarantee completion even under client-aborted HTTP requests.
π REST API Overview
Below is a consolidated summary of the 29 controller endpoints exposed by Buy2.Api:
Query peer recognitions directory with points tally and sorting
POST
/api/v1/recognitions
Create peer recognition with recipient and optional points grant
GET
/api/v1/recognitions/{id}
Detailed recognition view with recipient profile and audit trail
PUT
/api/v1/recognitions/{id}
Update recognition content, scheduling, and points award
DELETE
/api/v1/recognitions/{id}
Delete recognition with automated points grant reversal safeguard
π¨ Frontend Architecture (Angular 18+)
The frontend is located at src/Buy2.Frontend/Front and is designed for enterprise responsiveness, accessibility, and high performance:
Framework: Angular 18+ with Standalone Components and native Signals for reactive state management.
Styling: Tailwind CSS combined with Angular Material components.
Internationalization (i18n): Full English (en) and Arabic (ar) localization with dynamic RTL (Right-to-Left) layout switching.
Architecture: Modular feature directories with smart/dumb component segregation, dedicated HTTP services, and strongly-typed TypeScript models matching backend DTOs.
π§ͺ Testing & Quality Assurance
The solution enforces a rigorous testing regimen to ensure zero regressions across critical business workflows:
# Execute the full automated test suite
dotnet test
Total Automated Tests: 1,032 Passing Tests across all application and domain features.
Persistence Testing: Utilizes EF Core In-Memory database providers and schema synchronization guards (HasPendingModelChanges check) to guarantee migrations match domain entities.
Mutation Testing: Configured with Stryker.NET for mutation testing analysis.
Code Standards: Strict adherence to Karpathy AI coding rules, surgical modifications, and CQRS orchestrator invariants.
# 1. Clone repository
git clone https://github.com/Moha-sami/HR_system.git
cd HR_system
# 2. Build the solution
dotnet build HR_system.slnx
# 3. Run the automated test suite
dotnet test# 4. Start the API Backendcd src/Buy2.Api
dotnet run
# 5. Start the Angular Frontend (in separate terminal)cd ../Buy2.Frontend/Front
npm install
ng serve
Once running:
API Swagger UI: https://localhost:7136/swagger (or configured launch URL)
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
About
Open-source enterprise HRMS with shift scheduling, gamification points, and digital rewards built on .NET 10 & Angular 18. https://hr-system-rosy.vercel.app/