How hoangvu1420/petcaresystem works
Main Components
• Frontend: Located in the “PCS_front_end” directory, this part is built with modern JavaScript frameworks (using Vite and React), utilizes Tailwind CSS, and hosts various pages, components, and services. It handles customer login/registration, admin functions, pet management, bookings, and payment interfaces.
• Backend: The “PetCareSystem” folder shows an ASP.NET Core backend. It contains Controllers (e.g., AuthController, GroomingController, RoomBookingController), Models (like AppUser, Pet, Room, MedicalRecord, etc.), DataContext (ApplicationDbContext using Entity Framework Core), Services, and Repositories. The clear layered structure (Controllers → Services → Repositories) follows common enterprise patterns.
• Testing: There’s a “PetCareSystem.Test” project, which is useful to note for a complete picture of quality assurance.
• CI/CD/Deployment: The .github/workflows folder and deployment scripts (like netlify.toml in the frontend, and PublishProfiles in the backend) indicate continuous integration and deployment pipelines.
Relationships and Interactions
• The Backend’s Controllers receive requests, then pass them through business logic in Services, which in turn call Repository methods to interact with the Database.
• Communication flows should also be represented from the Backend back to the Frontend for responses and error messages.
• Optionally, show testing as peripheral components that interact with these layers.
Architectural Patterns and Technologies
• Layered Architecture: Start with Controllers, followed by Services, and then Repositories/Database.
• Separation of Concerns: A clear delineation between the UI (React) and API (ASP.NET Core).
• Use of Dependency Injection in the backend for service/repository management.
• The frontend uses component-based architecture with dedicated pages and components (for admin pages, login, pet management, etc.).
Relevant Technologies and Frameworks
• Frontend: Vite, React, Tailwind CSS, possibly ESLint and PostCSS.
• Backend: .NET 8 (or latest ASP.NET Core), Entity Framework Core, C# language, and corresponding testing frameworks (xUnit or similar as seen in the testing project).
• Development and Deployment: GitHub Actions workflows, Netlify for frontend deployment, and Web Deploy profiles for backend.