CleanArchitectureApp is a modern, enterprise, test-covered, clean architecture application built with:
The project follows the Clean Architecture principles to ensure separation of concerns and maintainability.
cd src/Presentation/API
dotnet run
cd src/Presentation/Web
npm install
npm start
cd tests
dotnet test UnitTests/UnitTests.csproj
dotnet test IntegrationTests/IntegrationTests.csproj
Follow the steps to deploy the application to Azure App Services and Azure SQL.
Azure App Services:
Azure SQL Database:
Use GitHub Actions for CI/CD. Example workflow:
name: CI/CD Pipeline
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Run tests
run: dotnet test --no-build --verbosity normal
- name: Publish
run: dotnet publish -c Release -o out
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: 'YOUR_APP_NAME'
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: './out'