Giter Site home page Giter Site logo

gee-app's Introduction

Gee Application

Build Status codecov Go Report Card
GoDoc

具有完善的单元测试方案,支持数据库、Redis的单元测试,支持Mock HTTP Request

使用方法

  1. git clone https://github.com/goapt/gee-app.git app
  2. go mod tidy
  3. 修改 config.toml 配置信息,如 app_name storage_path
  4. make 编译

Http Server

如果项目是一个http的接口项目,路由在router包中管理,handler 写到 handler 包,使用如下命令行启动

./app http --addr=:8081

Cli Server

如果项目是一个cli的命令行程序,命令行程序写在 cmd 包中,运行时指定subcommand名称,如

./app test --id=4

编译运行

make
./app subcommend

版本信息

./app -v

HTTP调试

详见 app/app.http 文件

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.