Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-28T03:48:29.000Z (4 months ago)
- Last Synced: 2024-08-28T05:27:39.122Z (4 months ago)
- Topics: csharp, dotnet, entity-framework, github-actions, sonarcloud, sqlite
- Language: C#
- Homepage:
- Size: 343 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
![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