Giter Club home page Giter Club logo

goal-account-backend's Introduction

goal-account-backend

Goal项目用户账号后端服务

本地开发

准备:

  1. 将 settings/server.json.template文件 复制为 settings/server.json 文件;
  2. 按实际需要修改 settings/server.json 文件内的其他各项配置;

运行本地服务:

  • 启动前台API服务:
$ go run cmd/api/main.go start -c settings/local.json
  • 启动后台管理API服务:
$ go run cmd/admin/main.go start -c settings/local.json
  • 停止服务:

    ctrl + c 可停止API服务

  • 测试服务是否正常启动:

    {本地IP}/api/ping

Docker相关:

构建 docker image

  • API image
$ make build-api
  • Admin Image
$ make build-admin

运行Docker容器

  • 运行前台API服务
$ make run-api
  • 运行后台API服务
$ make run-admin

通过 docker-compose 启动服务

将 settings/server.json.template文件 复制为 settings/compose.json 文件.

按实际需要修改 settings/compose.json 文件内的其他各项配置.

  • 运行api和admin接口服务
$ docker-compose up -d 
  • 运行All-In-One服务(含mysql,redis,api,admin服务)
$ docker-compose -f docker-compose-all-in-one.yml up -d 

goal-account-backend's People

Contributors

cnpythongo avatar

Watchers

 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.