feat(init): Prepare Project skeleton structure
This commit is contained in:
parent
fbe19b4e31
commit
eb8befc77c
13
helpers/api_types/go_swagger/create_project_skeleton.go
Normal file
13
helpers/api_types/go_swagger/create_project_skeleton.go
Normal file
@ -0,0 +1,13 @@
|
||||
package go_swagger
|
||||
|
||||
import (
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// CreateProjectSkeleton will generate all the files needed to start a new project.
|
||||
// it will return a list of created files or an error
|
||||
func (a APIType) CreateProjectSkeleton(path string) ([]string, error) {
|
||||
log.Debugf("Starting %s create project skeleton", string(a.GetName()))
|
||||
|
||||
return nil, nil
|
||||
}
|
0
templates/gin-gonic/.empty
Normal file
0
templates/gin-gonic/.empty
Normal file
0
templates/go-swagger/.empty
Normal file
0
templates/go-swagger/.empty
Normal file
11
templates/go-swagger/Makefile.go.tmpl
Normal file
11
templates/go-swagger/Makefile.go.tmpl
Normal file
@ -0,0 +1,11 @@
|
||||
# Code generated by gouick; DO NOT EDIT.
|
||||
|
||||
APICMD= go run cmd/{{ .AppNameKebabCase }}-server/*
|
||||
CMD= env PORT=${PORT:-3000} HOST=${HOST:-0.0.0.0} $(APICMD)
|
||||
|
||||
|
||||
generate:
|
||||
gouick generate
|
||||
|
||||
launch:
|
||||
@$(CMD)
|
0
templates/mojolicious/.empty
Normal file
0
templates/mojolicious/.empty
Normal file
Loading…
Reference in New Issue
Block a user