Categorygithub.com/wonjinsin/go-web-boilerplate
repositorypackage
0.0.0-20241208082201-ea83cc26ed72
Repository: https://github.com/wonjinsin/go-web-boilerplate.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

wonjinsin/go-web-boilerplate(pikachu)

Simple rest api server with Echo framework

License MIT DB Version DB Version Go Report Card

Features

Project structure

DDD(Domain Driven Design) pattern with controller, model, servie, repository

Getting started

Set infra

$ docker-compose -f infra-docker.yml up -d

Initial action

$ make all && make build && make start

If you have error when Init Please use below command and do Inital action again

make clean

MakeFile Command

migrate up

# e.g make migrate up ENV=local
$ make migrate up ENV=${ENV}

migrate down

# e.g make migrate down ENV=local
$ make migrate down ENV=${ENV}

Build vendors

$ make vendor

Build and start

$ make build && bin/pikachu

Test

$ make vet && make fmt && make lint && make test
// or
$ make test-all

Clean

$ make clean