Bank.CleanArchitecture.WebApi
Clean Architecture WebApi with .NET 7, CQRS & MediatR, JWT, Dapper with sql & stored procedures.
File Explorer
Download Latest Version (.zip)- CreateAccountCommand.cs
- CreateAccountCommandHandler.cs
- GetAccountsQuery.cs
- GetAccountsQueryHandler.cs
- GetTransactionsByAccIdHandler.cs
- GetTransactionsByAccIdQuery.cs
- CreateAccountResult.cs
- TransferResult.cs
- GetAccountsResult.cs
- GetTransactionsByAccIdResult.cs
- AddAccountCreditCommand.cs
- AddAccountCreditCommandHandler.cs
- NewCustomerAccountCommand.cs
- NewCustomerAccountCommandHandler.cs
- AddAccountCreditResult.cs
- NewCustomerAccountResult.cs
- RegisterCommand.cs
- RegisterCommandHandler.cs
- AuthenticationResult.cs
- LoginQuery.cs
- LoginQueryHandler.cs
- BankApplication.Application.deps.json
- BankApplication.Application.dll
- BankApplication.Application.pdb
- BankApplication.Domain.dll
- BankApplication.Domain.pdb
- DuplicateEmailException.cs
- InsufficientFunds.cs
- InternalServerError.cs
- InvalidAccount.cs
- InvalidCustomer.cs
- InvalidFrequency.cs
- InvalidPassword.cs
- InvalidTransfer.cs
- InvalidTransferAmount.cs
- InvalidTransferOperation.cs
- InvalidUser.cs
- RequieredFrequencyForSavingAcc.cs
- IJwtTokenGenerator.cs
- IAccountsRepository.cs
- IAdminstratorRepository.cs
- ICustomerRepository.cs
- IDispositionRepository.cs
- ITransactionsRepository.cs
- IUserRepository.cs
- IDateTimeProvider.cs
- PasswordGenerator.cs
- BankApplication.Application.dll
- BankApplication.Application.dll
- .NETCoreApp,Version=v7.0.AssemblyAttributes.cs
- BankApplication.Application.AssemblyInfo.cs
- BankApplication.Application.AssemblyInfoInputs.cache
- BankApplication.Application.assets.cache
- BankApplication.Application.csproj.AssemblyReference.cache
- BankApplication.Application.csproj.CopyComplete
- BankApplication.Application.csproj.CoreCompileInputs.cache
- BankApplication.Application.csproj.FileListAbsolute.txt
- BankApplication.Application.dll
- BankApplication.Application.GeneratedMSBuildEditorConfig.editorconfig
- BankApplication.Application.GlobalUsings.g.cs
- BankApplication.Application.pdb
- BankApplication.Application.csproj.nuget.dgspec.json
- BankApplication.Application.csproj.nuget.g.props
- BankApplication.Application.csproj.nuget.g.targets
- project.assets.json
- project.nuget.cache
- TransferCommand.cs
- TransferCommandHandler.cs
- BankApplication.Application.csproj
- DependencyInjection.cs
- AccountAggregate.cs
- NewCustomerAccountAggregate.cs
- TransferAggregate.cs
- BankApplication.Domain.deps.json
- BankApplication.Domain.dll
- BankApplication.Domain.pdb
- Account.cs
- AccountType.cs
- Card.cs
- Customer.cs
- Disposition.cs
- Loan.cs
- Transaction.cs
- User.cs
- BankApplication.Domain.dll
- BankApplication.Domain.dll
- .NETCoreApp,Version=v7.0.AssemblyAttributes.cs
- BankApplication.Domain.AssemblyInfo.cs
- BankApplication.Domain.AssemblyInfoInputs.cache
- BankApplication.Domain.assets.cache
- BankApplication.Domain.csproj.AssemblyReference.cache
- BankApplication.Domain.csproj.CoreCompileInputs.cache
- BankApplication.Domain.csproj.FileListAbsolute.txt
- BankApplication.Domain.dll
- BankApplication.Domain.GeneratedMSBuildEditorConfig.editorconfig
- BankApplication.Domain.GlobalUsings.g.cs
- BankApplication.Domain.pdb
- BankApplication.Domain.csproj.nuget.dgspec.json
- BankApplication.Domain.csproj.nuget.g.props
- BankApplication.Domain.csproj.nuget.g.targets
- project.assets.json
- project.nuget.cache
- BankApplication.Domain.csproj
- JwtSettings.cs
- JwtTokenGenerator.cs
- BankApplication.Application.dll
- BankApplication.Application.pdb
- BankApplication.Domain.dll
- BankApplication.Domain.pdb
- BankApplication.Infrastructure.deps.json
- BankApplication.Infrastructure.dll
- BankApplication.Infrastructure.pdb
- DapperContext.cs
- DapperSettings.cs
- BankApplication.Infrastructure.dll
- BankApplication.Infrastructure.dll
- .NETCoreApp,Version=v7.0.AssemblyAttributes.cs
- BankApplication.Infrastructure.AssemblyInfo.cs
- BankApplication.Infrastructure.AssemblyInfoInputs.cache
- BankApplication.Infrastructure.assets.cache
- BankApplication.Infrastructure.csproj.AssemblyReference.cache
- BankApplication.Infrastructure.csproj.CopyComplete
- BankApplication.Infrastructure.csproj.CoreCompileInputs.cache
- BankApplication.Infrastructure.csproj.FileListAbsolute.txt
- BankApplication.Infrastructure.dll
- BankApplication.Infrastructure.GeneratedMSBuildEditorConfig.editorconfig
- BankApplication.Infrastructure.GlobalUsings.g.cs
- BankApplication.Infrastructure.pdb
- BankApplication.Infrastructure.csproj.nuget.dgspec.json
- BankApplication.Infrastructure.csproj.nuget.g.props
- BankApplication.Infrastructure.csproj.nuget.g.targets
- project.assets.json
- project.nuget.cache
- AccountsRepository.cs
- AdminstratorRepository.cs
- CustomersRepository.cs
- DispositionRepository.cs
- TransactionsRepository.cs
- UserRepository.cs
- DateTimeProvider.cs
- BankApplication.Infrastructure.csproj
- BankApplication.Infrastructure.sln
- DependencyInjection.cs
- CreateAccountRequest.cs
- CreateAccountRequestData.cs
- CreateAccountResponse.cs
- GetTransactionsByAccIdResultRequest.cs
- GetTransactionsByAccIdResultRequestData.cs
- GetTransactionsByAccIdResultResponse.cs
- GetAccountsRequest.cs
- GetAccountsResponse.cs
- AddAccountCreditRequest.cs
- AddAccountCreditResponse.cs
- NewCustomerAccountRequest.cs
- NewCustomerAccountResponse.cs
- AuthenticationResponse.cs
- LoginRequest.cs
- RegisterRequest.cs
- TransferRequest.cs
- TransferRequestData.cs
- TransferResponse.cs
- BankApplication.Contracts.csproj
- AuthenticationMappingConfig.cs
- DependencyInjection.cs
- AdminstratorController.cs
- AuthenticationController.cs
- CustomersController.cs
- ErrorsController.cs
- AddAccountCreditMappingConfig.cs
- AuthenticationMappingConfig.cs
- CreateAccountMappingConfig.cs
- GetAccountByIdMappingConfig.cs
- GetAccountsMappingConfig.cs
- NewCustomerAccountMappingConfig.cs
- TransferMappingConfig.cs
- launchSettings.json
- JwtService.cs
- appsettings.Development.json
- appsettings.json
- BankApplication.WebApi.csproj
- BankApplication.WebApi.sln
- DependencyInjection.cs
- Program.cs
- AddAccountCredit_sP.sql
- AddUser_sP.sql
- CreateAccount_sP.sql
- CreateAccountReturnDisposition_sP.sql
- CreateCustomer_sP.sql
- GetAccountById_sP.sql
- GetAccounts_sP.sql
- GetCustomerIdDisposition_sP.sql
- GetTransactionByAccId_sP.sql
- GetUserByEmail_sP.sql
- IsValidAccount_sP.sql
- IsValidTransfer_sP.sql
- Transfer_sP.sql
- OnionArchitecture.png
- .dockerignore
- .editorconfig
- .gitignore
- Bank.CleanArchitecture.WebApi.sln
- docker-compose.yml
- Dockerfile
- LICENSE
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/felixsjoberg/Bank.CleanArchitecture.WebApi
Downloads the entire project code from GitHub to your computer.
cd Bank.CleanArchitecture.WebApi
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker compose up -d --build
Builds and starts all defined containers (server, database, etc.) at once, in the background.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
3. .NET
MediumPrerequisites
dotnet restore
Downloads the packages the project depends on.
dotnet run
Builds the project and runs it immediately.
After dotnet run, check the message or address shown in the terminal.
// repository documentation
Was this content helpful?
(0 ratings)
