Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 sonarcloud sqlite

Last synced: 4 days ago
JSON representation

API that simulates a simple bank developed in .NET

Awesome Lists containing this project

README

        

# Simple Bank API

#### API that simulates a simple bank developed in .NET

![API Swagger screenshot](assets/api-print.png)

The frontend be available [in this repository](https://github.com/vitor-msp/simple-bank-front)

## 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