GithubHelp home page GithubHelp logo

adolesce's Introduction

Adolesce

  • 该项目用于学习自己集成工具

目录结构

./
├── /api                             # http,grpc目录的api目录
│   ├── /public                         # 存放页面文件
│   ├── api_router.go                   # 配置路由
├── /bin                             # 编译的二进制文件存放位置
├── /cmd                             # 应用入口目录
│   ├── wire.go                         # 生成依赖注入
│   └── main.go                         # main函数
├── /internal                        # 封装内部实现
├── /scripts                         # 脚本
│   ├── /biz                             # usecase
│   ├── /conf                            # 读取配置目录
│   ├── /data                            # 仓库
│   ├── /pkg                             # 封装工具包
│   ├── /server                          # http、grpc、定时器等服务实例
│   └── /service                         # service
├── /storage                         # 运行数据存储目录
│   └── logs                            # 日志存储目录
├── /third_party                     # 第三方工具
├── go.mod                          # go mod
├── go.sum                          # go sum
├── Makefile                        # 编译脚本
└── README.md                       # 文档说明

使用说明

  • 前提,需要配置好go环境
  1. 把相关项目clone到自己目录下
git clone [email protected]:HatcherSu/adolesce.git
  1. 同步包到本地
go mod tidy
  1. 设置全局环境 .env
  • 主要需要设置的配置如下
# 数据库
DB_HOST=127.0.0.1       # 数据库host
DB_PORT=3306            # 数据库端口
DB_USERNAME=root        # 用户名
DB_PASSWORD=root1234    # 密码
DB_DATABASE=db_ex_user  # 需要连接的数据库名

# HTTP配置
HTTP_PORT=8081          # http端口
HTTP_IP_ADDR=localhost  # IP地址
  1. 修改html中相关url, 修改localhost:8081,修改成配置相应路由ip:port
  2. 执行sql文件,创建相应的表/cloud_callback/internal/data/schema.sql
  3. make install -- 安装相关的包以及编译
  4. make run或者make all -- 运行
  5. 浏览urlip:port/web/index.html

adolesce's People

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.