SigortaApp is an application that allows users to manage insurance policies. This project is developed to manage different insurance policies, enable users to perform operations on policies, and track transaction history.
- .NET SDK (Version 8.0 or higher)
- Visual Studio or another IDE
- Clone this repository:
git clone https://github.com/ATalhaTimur/insurance-app.git
- Navigate to the project directory:
cd SigortaApp
- Install the required dependencies:
dotnet restore
- Run the application:
dotnet run
/api/policies
- To manage insurance policies/api/users
- For user operations/api/transactions
- To manage transaction history
- Create a new policy:
curl -X POST -H "Content-Type: application/json" -d '{"policyNumber":"12345","policyName":"Health Insurance"}' http://localhost:5000/api/policies
This project adopts a layered architecture. The main layers are:
- Entities: Contains data models.
- Repositories: Data access layer.
- Services: Business logic layer.
- Contracts: Contains service interfaces.
The diagram above shows the relationships between the layers. The Services
layer depends on the Repositories
and Contracts
layers. The Entities
layer contains the data models used by other layers.
This diagram shows the general design of the project. PolicyManager
, PolicyUserManager
, TransactionsManager
, and UsersManager
classes interact with the Repositories
and Contracts
layers.
This diagram shows the relationship between each manager and its corresponding service interface.
If you want to contribute, please open an issue first. For major changes, please open an issue first to discuss what you would like to change.
- Fork this repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE
file for details.