Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmytrodemianchuk/go-crud-csv
Application for request an external CSV file with a list of products
https://github.com/dmytrodemianchuk/go-crud-csv
csv docker docker-compose gin-gonic go golang migrations postgresql swagger
Last synced: 1 day ago
JSON representation
Application for request an external CSV file with a list of products
- Host: GitHub
- URL: https://github.com/dmytrodemianchuk/go-crud-csv
- Owner: DmytroDemianchuk
- Created: 2023-12-02T05:19:38.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-12-03T08:04:26.000Z (12 months ago)
- Last Synced: 2024-06-19T16:24:21.870Z (5 months ago)
- Topics: csv, docker, docker-compose, gin-gonic, go, golang, migrations, postgresql, swagger
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Application for request an external CSV file with a list of products
## I used the following concepts during development:
- Building a Web Application with Go, following the REST API design.
- The Clean Architecture approach in building the structure of an application. Dependency injection technique.
- Working with the gin-gonic/gin framework.
- Working with Postgres database. Run from Docker. Generation of migration files.
- Writing SQL queries.## Prerequisites
- go 1.20
- docker & docker-compose
- swag (optional, used to re-generate swagger documentation)## Run Project
Create .env file in root directory and add following values:
```
ENV=localDB_NAME=store
DB_PASSWORD=test
DB_USER=root
DB_HOST=pgHTTP_HOST=localhost
HTTP_PORT=8080
```Definition migrating to database
```
make migrate-up
```Use `make run` to build&run project
```
make run
```Swagger