Welcome to ContactManager, an awesome ASP.NET Core Minimal API built on .NET 8! π This application manages contacts efficiently while following the SOLID principles for a codebase. π»
-
Clone the repository:
git clone https://github.com/zangassis/contact-manager-solid-chapter.git
-
Navigate to the project folder:
cd ContactManager
-
Install dependencies:
dotnet restore
-
Set up MongoDB Atlas:
- Create a MongoDB Atlas account: MongoDB Atlas
- Obtain your connection string.
-
Configure MongoDB Connection:
- Open
appsettings.json
and replace the placeholder in"ContactDbSettings"
with your MongoDB connection string.
- Open
-
Run the application:
dotnet run
β
Minimal API Design
β
.NET 8 Excellence
β
MongoDB Atlas Integration
β
Contact Management System
This project adheres to the SOLID principles:
-
S - Single Responsibility Principle (SRP):
- Each class and method has a single responsibility.
-
O - Open/Closed Principle (OCP):
- The code is open for extension but closed for modification.
-
L - Liskov Substitution Principle (LSP):
- Subtypes can replace their base types without altering the correctness of the program.
-
I - Interface Segregation Principle (ISP):
- Interfaces are client-specific, and no client should be forced to depend on methods it does not use.
-
D - Dependency Inversion Principle (DIP):
- High-level modules should not depend on low-level modules; both should depend on abstractions.
Feel free to explore and contribute to ContactManager! Happy coding! ππ¨βπ»π©βπ»