https://github.com/gotidy/app
Go application template.
https://github.com/gotidy/app
golang golang-application golang-examples
Last synced: 13 days ago
JSON representation
Go application template.
- Host: GitHub
- URL: https://github.com/gotidy/app
- Owner: gotidy
- License: apache-2.0
- Created: 2020-11-11T13:24:04.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-27T14:22:09.000Z (over 5 years ago)
- Last Synced: 2025-12-15T06:20:41.452Z (6 months ago)
- Topics: golang, golang-application, golang-examples
- Language: Go
- Homepage:
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go language blank application
Some Go language blank application.
## Launch generation
```sh
go generate ./...
```
or
```sh
make gen
```
## Launch tests
```sh
go test ./...
```
or
```sh
make test
```
## Docker-compose
```sh
docker-compose up -d someconteiner
docker-compose up --build app
```
or
```sh
# Start all containers.
make up
# Start some containers.
make up-some
# Start APP container.
make up-app
# Stop containers.
make down
```
## Launch application
```sh
APP_DB_HOST=127.0.0.1
APP_DB_PORT=5432
APP_DB_NAME=database
APP_DB_USER=$DB_USER
APP_DB_PASSWORD=$DB_PASSWORD
APP_HOST=
APP_PORT=80
APP_PATH=/
go run ./cmd/app/*
```
or
```sh
# Launch application.
make run
# Show help.
make help
```