Categorygithub.com/CodeHanHan/ferry-backend
repositorypackage
0.0.0-20220126111042-bcd2c7cf3f6d
Repository: https://github.com/codehanhan/ferry-backend.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

ferry-backend

1. 目录

.
├── apis
│   ├── dept
│   ├── ping
│   ├── post
│   ├── role
│   └── user
├── db
│   ├── db.go
│   ├── ddl
│   ├── Dockerfile
│   ├── errors.go
│   ├── logger
│   ├── Makefile
│   ├── query
│   └── schema
├── debug-main
├── deploy
│   ├── config
│   └── docker-compose
├── Dockerfile
├── docs
│   ├── dev
│   ├── docs.go
│   ├── swagger.json
│   └── swagger.yaml
├── go.mod
├── go.sum
├── LICENSE
├── main.go
├── Makefile
├── middleware
│   ├── auth.go
│   ├── check_role.go
│   ├── header.go
│   ├── init.go
│   ├── log.go
│   ├── requestId.go
│   └── sender.go
├── models
│   ├── dept
│   ├── ping
│   ├── post
│   ├── role
│   └── user
├── pkg
│   ├── app
│   ├── captcha
│   ├── config
│   ├── constants
│   ├── form
│   ├── logger
│   ├── mycasbin
│   ├── pi
│   ├── sender
│   ├── token
│   ├── validator
│   └── xmysql
├── README.md
├── routers
│   ├── dept
│   ├── init.go
│   ├── ping
│   ├── post
│   ├── role
│   └── user
├── static
│   ├── Dockerfile
│   ├── Makefile
│   └── nginx-conf
├── utils
│   ├── fileutil
│   ├── idutil
│   ├── imageutil
│   ├── password
│   ├── rand
│   └── stringutil
└── wercker.yml

2. 启动流程(本地启动)

  1. 拉取最新代码

    git clone [email protected]:CodeHanHan/ferry-backend.git
    
  2. 配置数据库

    make build-db # 创建数据库image
    
    make db-up # 启动数据库container
    
    make migrate-up # 数据库迁移
    
  3. 启动项目

    make dev-up # 启动项目
    

3. 启动流程(docker-compose)

  1. 拉取最新代码

    git clone [email protected]:CodeHanHan/ferry-backend.git
    
  2. build镜像

    make build-images
    
  3. 启动

    make compose-up
    

4. Contributors