Git Product home page Git Product logo

jz-back's Introduction

简介

此仓库是 洁账 的 go 服务端,是基于 Echo 框架开发的,由于本人也是第一次接触 go 语言,所以如果各位看官觉得代码写得不好或者有待优化的地方欢迎提 PR 指导指导。

小程序端地址

https://github.com/yigger/jiezhang

温馨提示:本项目处于开发中状态,暂不可同时配合小程序端使用。

目录

环境配置

1. 源码下载
go get github.com/yigger/JZ-back

2. Mysql 配置文件
cp conf/conf.d/database.json.example database.json
编辑 database.json,填写你本地环境的参数

3. Database 迁移
go run migrate/run.go

3. Redis 配置文件
cp conf/conf.d/redis.json.example redis.json

4. 常规配置文件
cp conf/conf.d/jz.json.example jz.json
自行准备好 app_id 和 app_secret,此参数请登录微信小程序进行获取

运行

go run main.go

然后打开小程序开发工具,查看 network,检查接口连接情况

目录结构

conf            配置项
controller      控制器层(C)
log             日子类
middleware      中间件
model           模型(M)
service         服务层(业务逻辑封装)
public          静态资源
tests           测试类
utils           工具类

热加载

https://github.com/cosmtrek/air

联系

yigger#163.com

jz-back's People

Contributors

yigger 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.