Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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=postgres

HTTP_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