1 Star 2 Fork 0

spwx820 / gfrest

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
readme.md

简介

gf rest (goframe restful api)

基于goframe 的api开发脚手架

特点

  1. 使用django管理模型
  2. 使用fabric+docker-compose进行部署
  3. 使用gf-cli生成模型代码,service代码,api代码

使用方法

1. git clone git@gitee.com:spwx/gfrest.git

2. 修改项目名

3. 在 deploy/py_app_models 中增加/修改模型,修改 fabfile.py 中 django_apps, update_models 模型名称。

4. fab update_models  # 更新模型,service,api代码

5. fab update_swagger # 更新swagger文档

6. fab update_web_image  # 更新镜像

7. fab sync_local_code_to_test  # 部署测试环境
    {

"mappings": { "properties": {"initVm444" : { "type" : "text", "fields" : { "keyword" : { "type" : "keyword", "ignore_above" : 256 } } }}, "date_detection": true, "dynamic_date_formats": [ "yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm:ss.S", "yyyy-MM-dd HH:mm:ss.SS", "yyyy-MM-dd HH:mm:ss.SSS", "yyyy-MM-dd HH:mm:ss.SSSS", "yyyy-MM-dd HH:mm:ss.SSSSS", "yyyy-MM-dd HH:mm:ss.SSSSSS" ] } }

Comments ( 0 )

Sign in for post a comment

About

No description spread retract
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
1
https://gitee.com/spwx/gfrest.git
git@gitee.com:spwx/gfrest.git
spwx
gfrest
gfrest
master

Search