Skip to content

beardfriend/ddalggak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Fiber Starterkit with Boilerplate Code Generation

This Boilerplate is designed to start easier. In long term, you'll have to create many repeated code. It will help you from boring stuff.

Video Label Click image, watch sample in youtube

How to Generate Code

# bin/bash
go install github.com/beardfriend/ddalggak-gen@v1.0.3

install https://github.com/ent/ent write orm code in schema directory

# bin/bash
make ent-init && make ent-generate
# bin/bash
go run -mod=mod github.com/beardfriend/ddalggak-gen -s {schemaFile NameOnly} -m {module path}

example

# bin/bash
go run -mod=mod github.com/beardfriend/ddalggak-gen -s "product" -m "./internal"

code will be generated

Generate Mock File

install https://github.com/vektra/mockery

# bin/bash
mockery

Generate Swagger docs

install https://github.com/swaggo/swag

# bin/bash
make swag

used

  • fiber/v2 (web framework)
  • ent (ORM)
  • swaggo/swag (docs)
  • air (hot rereload)
  • wire (dependency injection)
  • jwt
  • mock

About

golang fiber starterkit with boilerplate code generation

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages