A RESTful banking backend built with C# / ASP.NET Core 6 and MongoDB. The API manages users, accounts, transactions, tags, and goal-based financial tracking.
- C# / .NET 6
- ASP.NET Core Web API
- MongoDB Atlas
- MongoDB.Driver
- Swagger / OpenAPI
- BCrypt.Net
- REST APIs for users, accounts, transactions, tags, and financial goals
- MongoDB persistence through Atlas
- Goal tracking with target amount, target date, balance, and transactions
- Optional public
Iconfield for goals - CORS support and Swagger-based API exploration
- Install the .NET 6 SDK.
- Clone the repository.
- Create a local
CommBank-Server/Secrets.jsonfile using the template below. - Add your MongoDB Atlas connection string.
- Restore and run the API.
{
"ConnectionStrings": {
"CommBank": "YOUR_MONGODB_CONNECTION_STRING"
}
}
Secrets.jsonis intentionally ignored by Git and must never be committed with real credentials.
dotnet restore
dotnet run --project .\CommBank-Server\CommBank.csprojThe API runs on the local HTTP endpoint shown by ASP.NET Core at startup.
This repository is a backend implementation exercise focused on connecting a .NET REST API to MongoDB and extending the Goal data model with an optional public icon field.