【文件属性】:
文件名称:NaiaBackendAPI:Naia Project后端API
文件大小:19KB
文件格式:ZIP
更新时间:2021-04-06 23:05:52
Go
Naia后端API
Naia Proejct后端API
ElasticSearch产品和服务
项目流程
Controllers - > Services - > Repositories - > Models
设置环境
cp env_exampl env.sh
# changed ElasticSearch, index...
# and apply the modified environment variables
source env.sh
昂首阔步
修改后的选项
庞大的网址:
go get -u github.com/swaggo/swag/cmd/swag
swag init -parseDependency=true
预运行(构建)
用法线(依赖注入)
$ wire
跑步
没有构建
go run main.go wire_gen.go
建造
go build ma
【文件预览】:
NaiaBackendAPI-master
----.gitignore(283B)
----go.mod(450B)
----Dockerfile(580B)
----wire.go(436B)
----services()
--------win.go(2KB)
----models()
--------win.go(177B)
----go.sum(13KB)
----env_example(195B)
----main.go(1KB)
----README.md(1KB)
----config()
--------api_error.go(57B)
--------config.go(955B)
----repositories()
--------win.go(3KB)
----controllers()
--------win.go(2KB)
----routes()
--------win.go(360B)
----wire_gen.go(593B)
----docs()
--------swagger.yaml(2KB)
--------docs.go(5KB)
--------swagger.json(4KB)