Welcome to MyProject Web API, a robust and scalable web application built using .NET Core and organized following Clean Architecture principles. This architecture ensures a clear separation of concerns, facilitating maintainability, testability, and scalability of the application.
The project is divided into several layers, each responsible for different aspects of the application:
- Core Layer: Contains the core business logic and domain entities.
- Application Layer: Contains the application-specific logic, including services and mappers.
- Infrastructure Layer: Handles data access, repositories, and configuration settings.
- Presentation Layer: Manages the web API controllers, middleware, and routing logic.
- .NET Core SDK
- PostgreSQL or any other database of your choice
-
Clone the repository:
git clone https://gitlab.kyanon.digital/Training-Intern-2024/haopham.git cd yourproject -
Update the connection string in
appsettings.json:{ "ConnectionStrings": { "DefaultConnection": "YourConnectionStringHere" } } -
Apply database migrations:
"update-database". -
Run the application:
"dotnet run" -
Basic Auth information are in
appsettings.Development.json.
Usage
After starting the application, you can access the API endpoints via: https://localhost:7220/api/yourendpoints
Contributing
- Fork the repository
- Create a feature branch (git checkout -b feature/your-feature)
- Commit your changes (git commit -am 'Add your feature')
- Push to the branch (git push origin feature/your-feature)
- Create a new Pull Request
Acknowledgements
- Clean Architecture by Milan Jovanović
- .NET Core Documentation