Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmytrodemianchuk/bank-transactions
Receiving transaction information from a CSV file
https://github.com/dmytrodemianchuk/bank-transactions
csv docker docker-compose gin-gonic go golang postgres swagger
Last synced: about 1 month ago
JSON representation
Receiving transaction information from a CSV file
- Host: GitHub
- URL: https://github.com/dmytrodemianchuk/bank-transactions
- Owner: DmytroDemianchuk
- Created: 2023-12-10T14:06:25.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-10T14:19:15.000Z (11 months ago)
- Last Synced: 2024-10-01T09:06:51.359Z (about 2 months ago)
- Topics: csv, docker, docker-compose, gin-gonic, go, golang, postgres, swagger
- Language: Go
- Homepage:
- Size: 639 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Application for receiving transaction information from a CSV file
## The REST API has the following endpointers:
- Downloading transactions from a *.csv file (example.csv), parsing it and saving the parsing results to the database
- Filtering and uploading previously saved data in JSON format in the response
- The same as endpoint 2, but only download data not in JSON, but in the form of a CSV file.
- Get transactions## Prerequisites
- go 1.20
- docker & docker-compose
- swag## Run Project
Create .env file in root directory and add following values:
```
DB_HOST=localhost
DB_PORT=5432
DB_NAME=postgres
DB_SSLMODE=disable
DB_USERNAME=postgres
DB_PASSWORD=postgresHTTP_HOST=localhost
HTTP_PORT=8080
```
Definition migrating to database```make migrate-up```
Use `make run` to build&run project
```make run``
Swagger
http://localhost:8080/swagger/index.html
![swagger-image](../main/assets/swagger-image.png)
#### ALL TRANSACTIONS IS A FAKE