https://github.com/grootkng/clean-arch-golang
An implementation of clean architecture with Go/Golang
https://github.com/grootkng/clean-arch-golang
clean-architecture gin-gonic go golang gorm swagger
Last synced: 3 months ago
JSON representation
An implementation of clean architecture with Go/Golang
- Host: GitHub
- URL: https://github.com/grootkng/clean-arch-golang
- Owner: grootkng
- Created: 2023-08-15T17:18:38.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-24T19:42:55.000Z (over 2 years ago)
- Last Synced: 2025-06-04T20:24:11.521Z (about 1 year ago)
- Topics: clean-architecture, gin-gonic, go, golang, gorm, swagger
- Language: Go
- Homepage:
- Size: 87.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Clean Arch Golang
## How to run
### Requirements
* docker
* docker-compose
* make
### Step by step
Open your terminal and type it:
```sh
docker compose up -d
# or when you already have the database setup
make app
```
To run test:
```sh
# when you already have the database setup
go test github.com/grootkng/clean-arch-golang/tests
# or
make test
```
To generate new version swagger:
```sh
swag init -g cmd/api/main.go
```
To access swagger: `http://localhost:8080/swagger/index.html`
And after that, the application should be running at `localhost:8080`
Check [here](./docs/insomnia-collection) the insomnia collection for the endpoints
