https://github.com/vitor-msp/simple-bank-api
API that simulates a simple bank developed in .NET
https://github.com/vitor-msp/simple-bank-api
csharp dotnet entity-framework github-actions postgresql redis sonarcloud sqlite
Last synced: 2 months ago
JSON representation
API that simulates a simple bank developed in .NET
- Host: GitHub
- URL: https://github.com/vitor-msp/simple-bank-api
- Owner: vitor-msp
- Created: 2023-09-17T17:13:23.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-07T02:08:30.000Z (over 1 year ago)
- Last Synced: 2025-02-25T22:46:18.671Z (over 1 year ago)
- Topics: csharp, dotnet, entity-framework, github-actions, postgresql, redis, sonarcloud, sqlite
- Language: C#
- Homepage:
- Size: 292 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Bank API
#### API that simulates a simple bank developed in .NET

- The **frontend** be available [in this repository](https://github.com/vitor-msp/simple-bank-front)
- The **cloud infra** be available [in this repository](https://github.com/vitor-msp/simple-bank-infra)
## Execution
1. Clone this repository
```
git clone https://github.com/vitor-msp/simple-bank-api.git
```
2. Access the downloaded folder
```
cd simple-bank-api
```
3. Restore the .NET dependencies
```
dotnet restore
```
4. Run migrations
```
dotnet ef database update --project SimpleBankApi.Repository --connection "DataSource=../bank.db"
```
5. Populate database
```
cat populate.sql | sqlite3 bank.db
```
6. Run API
```
dotnet run --project SimpleBankApi.Api
```
7. Access [Swager URL](http://localhost:5000/swagger)
## Notes
1. The port 5000 in your machine must be free