golang-api-skeleton

command module
v0.0.0-...-da3856f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 6 Imported by: 0

README

Golang Rest API skeleton

Build Status Codecov Go Report Card Version License

Uses:
  • gin as http framework
  • gorm-v2 as ORM
  • go-fractal as data transformer
  • go-hashids as numerical ID obfuscation
Commands list:
Command Description Launch
develop:test Testable command manually
database:migrations:migrate Apply migrations manually
database:migrations:rollback Rollback migrations manually
database:seeders:seed Seed dev data to DB manually
database:seeders:clear Clear dev data manually
app:start API WebServer launch manually
Launch
  • ./golang-api-skeleton {command} - simple launch
  • ./golang-api-skeleton {command} -config=./config.yml - launch with args

Testing

go test --coverprofile=coverage.out ./... && go tool cover -func coverage.out && go tool cover --html=coverage.out -o coverage.html

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
commands
database
models

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL