# gfrest **Repository Path**: spwx/gfrest ## Basic Information - **Project Name**: gfrest - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2020-10-25 - **Last Updated**: 2021-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 简介 ## gf rest (goframe restful api) ### 基于goframe 的api开发脚手架 ### 特点 > 1. 使用django管理模型 > 2. 使用fabric+docker-compose进行部署 > 3. 使用gf-cli生成模型代码,service代码,api代码 ### 使用方法 ```bash 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" ] } }