Code Monkey home page Code Monkey logo

apijson-go's Introduction

apijson-go

分支说明

  • master 最新的代码,可能有 bug
  • beta 最新测试版, 功能可用,无明显 bug
  • release 发布分支,有较高测试用例覆盖率

计划里程碑

  • v0.1 完成基础 CRUD 的功能
  • v0.2 支持权限认证,可管理到表和字段的权限
  • v0.3 支持复杂查询

v0.1

功能实现进度

  • 1.实现单表查询
  • 2.实现数组查询
  • 3.实现两张表 一对一 关联查询
  • 4.实现两张表 一对多 关联查询
  • 5.实现两张表在数组内 一对一 关联查询
  • 6.实现两张表在数组内 一对多 关联查询
  • 7.实现 column, order by 功能
  • 9.实现 /post 增加一条记录
  • 10.实现 /put 更新一条记录
  • 11.实现 /del 删除一条或多条记录

0.1 beta 版已完成,欢迎测试提交 bug

开发指南

  1. go version >= 1.13
  2. 准备数据库
docker run -d -p3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=1234qwer  mysql:8
  1. 创建数据库,导入 SQL
  2. 根据数据库参数修改 main.go 的 db.Init 参数
  3. 运行 go run main.go
  4. HTTP 数据测试可以看根目录的 test.http
  5. 或者使用 APIAuto 测试更方便 APIAuto

apijson-go's People

Contributors

j2go avatar tommylemon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.