Skip to content

ASP.NET 6 Application with CQRS, Azure Functions, Azure Database, Clean Architecture and SpecFlow automated tests

Notifications You must be signed in to change notification settings

RobertMut/JustAnotherAzureApplication

Repository files navigation

ASP.NET 6 API to store and create miniatures images and share them between users and groups.

Technologies

  • ASP.NET Core
  • EntityFramework Core
  • MediatR
  • AutoMapper
  • Moq
  • Specflow
  • Azure Functions
  • Azure Storage
  • NUnit
  • FluentAssertions
  • FluentValidation

Azure run

  1. Clone the repository
  2. Create Azure Storage
  3. Create Azure Database
  4. Create Azure Functions
  5. Create Azure Web App
  6. Create KeyVault
  7. Publish Function as Azure Function
  8. Publish API as Web App
  9. Add ConnectionStrings to environmental variables and/or to KeyVault
  10. Run WebApp

Local run

  1. Clone the repository
  2. Install Node
  3. Install Azurite
  4. Install Microsoft Sql Server it can be Developer or Express version
  5. Install Azure Functions Core Tool
  6. Fill connection strings in appsettings
        {
          "KeyVault": "KEYVAULTADDRESS",
          "ConnectionStrings": {
            "JAAADatabase": "DATABASECONNECTIONSTRING"
          },
          "AzureWebJobsStorage": "STORAGECONNECTIONSTRING"
        }
  7. Create local.settings.json file under Src/Functions
  8. Restore packages
    dotnet restore
    
  9. Build solution
    dotnet build   
    
  10. Start solution
    dotnet run
    
  11. Navigate to Src/Functions and run function
    func start
    

Default data

User:
 Username: Default
 Password: 123456
Group: Everyone

Architecture

About

ASP.NET 6 Application with CQRS, Azure Functions, Azure Database, Clean Architecture and SpecFlow automated tests

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published