Skip to content

bitbossing/mc-2025-csharp-aspnetwebapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’» Sample project showcasing a basic API implementation for an Insurance Management System.

This is a practice and learning project built with C# and ASP.NET Core Web API, focused on the core structure of an Insurance Management System.

It demonstrates essential concepts in modern API development, including layered architecture, clean coding standards, and key features like authentication, data handling, and policy management.

Designed for experimentation and foundational training, this project serves as a starting point for developing more robust, production-ready insurance applications.


πŸ”₯ Tech Stack & Tools

C# ASP.NET MS SQL Web API REST API MVC ADO.NET Xunit Tests Swagger Visual Studio VS Code Docker


✨ Features

🧱 API & Service Foundations

  • Architectural Principles: Layered Architecture, Object-Oriented Programming (OOP), SOLID Principles
  • Core API Design: Dependency Injection, API Versioning, JWT Authentication, Request Validation, CORS Handling

πŸ—„οΈ Data Management & Interaction

  • Database Abstraction: DB Wrapper, API DB Factory Wrapper
  • Database Design & Structure:
    • Schema & Constraints: Primary Keys, Foreign Keys, Normalization, Column/Field Standardization
    • Programmability: Stored Procedures, Functions, Views, Procedure Return Results
    • Performance & Efficiency: Query Optimization, Pagination, Indexing, UTC Time Saving

βš™οΈ Operational Excellence

  • Monitoring & Reliability: API Logging, Timeout Handling

🧼 Code Quality & Standards

  • Development Practices: Clean Code, Maintainability First
  • Resource Management: Constants, Static Data, Static Messages

πŸ§ͺ Development Workflow & Testing

  • Documentation & Testing: API Documentation, Unit Tests, Mock Data for Testing
  • Deployment Readiness: Docker Prepared

πŸ“š Modules

  1. πŸ§‘β€πŸ’Ό Agents
  2. πŸ§‘β€πŸ’Ό Sub-Agents
  3. πŸ“£ Promo Managers
  4. πŸ“Š Sales Managers
  5. πŸ•΅οΈ Promo Officers
  6. 🀝 Partners
  7. πŸ‘€ Clients
  8. 🏒 Providers
  9. πŸ”€ Distribution Channels
  10. πŸ—‚οΈ Product Categories
  11. πŸ“¦ Products
  12. πŸ“˜ Policy Components:
  • πŸ’  Benefits
  • πŸ›‘οΈ Deductibles
  • πŸ’° Premiums
  • πŸ‘¨β€πŸ‘©β€πŸ‘§ Beneficiary
  • πŸ’³ Payments
  • πŸ“Ž Attachments
  1. πŸ”„ Policy Booking CRUD Operations:
  • 🧾 Individual Policy Booking
  • 🏒 Partner Policy Booking
  • πŸ‘₯ Group Policy Booking

πŸ›  Requirements

  • .NET Framework 8.0 or Higher
  • MS SQL Server 16.0 or Higher
  • Visual Studio

πŸ”‘ Default Authentication

You can decode and verify this JWT at jwt.io

πŸ“Œ Header

{
  "alg": "HS256",
  "typ": "JWT"
}

πŸ“¦ Payload

{
  "sub": "500329",
  "name": "John Doe",
  "role": "Sales Agent",
  "iss": "http://localhost:7175",
  "aud": "mc.ims.api",
  "exp": 1893456000
}

✍️ Signature

83afd726d5595c1eb62f0e5c839f52581b6ad0d13e4c6087ca8b764ab2c8409b
2401240e69236d1ef65bf76fa22ad731d8e252d585de3369c5b5545bdf9a6e6d

▢️ How to Run

  1. Clone the repo:
    git clone https://github.com/MasterConnoisseurs/mc-2025-csharp-aspnetwebapi.git
  2. Execute Database Script : Database Script πŸ“„
  3. Update the connection string to match your connection details.
"ConnectionStrings": {
  "DefaultConnection": "Server=localhost;Database=mc_ims;TrustServerCertificate=True;Trusted_Connection=True;"
},

πŸ–ΌοΈ Gallery

Here are some screenshots of the MC Laundry Shop Application in action:

system_image_1 system_image_2 system_image_3 system_image_4 system_image_5 system_image_6 system_image_7

About

Sample project showcasing a basic API implementation for an Insurance Management System.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages