Skip to content

IBruteDude/BankingSystem

Repository files navigation

Banking System

This Banking System API enables you to create Checking and Savings accounts with their own logic with interest and overdrafts

To Run Locally

Go to the project directory and open it using Visual Studio

To Setup SQL Server Database locally

  • Navigate to the src/Presentation/WebAPI
  • Find the "Connected Services" option
  • Right-click it and choose "Manage Connected Services"
  • On the left panel go to "Connected Services"
  • Click on the plus sign in the upper right corner
  • Search for "SQL Server Express LocalDB (Local)" dependency and choose it
  • For the "Connection string name" option write "ConnectionStrings:BankingSystemContext"
  • Click Next then Finish

To Setup Database migrations

  • Navigate to the "Persistence" folder
 cd .\Persistence
  • Add new migration with name "BankingSystem"
 dotnet ef migrations add BankingSystem --context BankingSystemContext --startup-project ..\WebAPI
  • Update the SQL Server database using the migration
 dotnet ef database update --context BankingSystemContext --startup-project ..\WebAPI
  • Now you can run the project using the debugger's http option or run normally!

Swagger API Docs

You can Access the Swagger UI at: http://localhost:5139/swagger/index.html

For a brief for endpoints

Checking Account API endpoint

POST /api/accounts/checking

GET /api/accounts/checking

DELETE /api/accounts/checking/{id}

Savings Account API endpoint

POST /api/accounts/savings

GET /api/accounts/savings

DELETE /api/accounts/savings/{id}

Transactions API endpoint

POST /api/accounts/deposit

POST /api/accounts/withdraw

POST /api/accounts/transfer

GET /api/accounts/{id}/balance

About

Banking System RESTful .NET API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages