https://github.com/abeltay/go-template
An opinionated way of structuring Go code
https://github.com/abeltay/go-template
go
Last synced: 2 months ago
JSON representation
An opinionated way of structuring Go code
- Host: GitHub
- URL: https://github.com/abeltay/go-template
- Owner: abeltay
- License: gpl-3.0
- Created: 2022-04-19T03:30:32.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-14T14:43:58.000Z (6 months ago)
- Last Synced: 2025-02-10T06:43:45.111Z (4 months ago)
- Topics: go
- Language: Go
- Homepage:
- Size: 295 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Template
## Setup
1. Install [Go](https://go.dev/)
1. Install [Docker](https://www.docker.com/)
1. `make up`
1. `make migrate`
1. `make install-sqlboiler`## Generate code
1. `make generate-sqlboiler`
1. `make generate-mocks`## Testing
1. Start the database by running `make up`
1. `make migrate`
1. `make test`
1. (Optional) After completion of your tests, `make down`## Clean-up
To delete database and migrate again: `make clean`