Running Examples
Running samples for RCommon
Requirements
Visual Studio 2022 Community Edition+
SQL Express 2019+
Requires EF Tools to be installed to dotnet CLI https://docs.microsoft.com/en-us/ef/core/cli/dotnet - include updates.
Suggested Reading & Courseware
There is a lot to do with RCommon. It can be used simply as a library of extensions/helpers to assist you with day-to-day programming, or you can build substantially complicated solutions from it. Our samples will focus on some of the heavier lifting done when building loosely coupled, future proofed applications.
Our "Clean Architecture with CQRS" sample was built from an existing educational solution which also happens to have a Udemy course available for it. We don't have anything to do with the courseware but we like it. This is a good place to start as it will provide a straight forward approach to building a loosely coupled application using patterns like CQRS, Mediator, Unit of Work, Repository Pattern, and more. RCommon extends this sample by demonstrating how easy, and efficient it is to use our persistence libraries along with our data services to implement unit of work.
Start Up Instructions
Download or clone the source code from GitHub
Right click on the HR.LeaveManagement.API project
Choose "Open in Terminal" from menu
Refer to Developer Powershell
Run commands below:
dotnet ef database update --context LeaveManagementDbContext
dotnet ef database update --context LeaveManagementIdentityDbContext
Right click solution and choose "Set Startup Projects" from menu.
Choose "HR.LeaveManagement.MVC" and "HR.LeaveManagement.API" from menu options.
Build and Start Solution
Login
At this point you should have a solution that compiles, and runs and you'll be presented with two browser windows:
The Swagger API for the HR Leave Management System
The User Interface for the HR Leave Management System
3. Choose the "Login" link at the top right
4. Login with "admin@localhost.com" and Password: "P@ssword1" for administrative functionality and "user@localhost.com"/"P@ssword1" for a basic user functionality
5. From here, you can feel free to explore the application.
Last updated