Skip to content

Latest commit

 

History

History
47 lines (26 loc) · 1.22 KB

README.zh-TW.md

File metadata and controls

47 lines (26 loc) · 1.22 KB

Gin Scaffold

Godoc Reference Build Status Coverage Status Go Report Card

For now the project only supports mongodb and mgo as database. Gin Scaffold 是用於為 gin 框架生成腳手架的CLI。 現在該項目只支持 mongodbmgo 作為數據庫。

安裝

go get github.com/dcu/gin-scaffold

創建一個模型

gin-scaffold init <project path>

創建控制器

gin-scaffold model <model name> <field name>:<field type>

創建一個腳手架

gin-scaffold controller <controller name>

創建一個腳手架

gin-scaffold scaffold <controller name> <field name>:<field type>

賽跑

go run <project name>.go

訪問

Open browser, and access to http://localhost:4000. (Default port:4000)

執照

MIT

作者

David Cuadrado (dcu)