feat(init): Prepare Project skeleton structure
This commit is contained in:
@@ -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,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)
|
||||||
Reference in New Issue
Block a user