Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CodeHanHan/ferry-backend

Repository files navigation

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 git@github.com: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 git@github.com:CodeHanHan/ferry-backend.git
  2. build镜像

    make build-images
  3. 启动

    make compose-up

4. Contributors

Releases

No releases published

Packages

No packages published

Contributors 4

AltStyle によって変換されたページ (->オリジナル) /