ErikJiang / Market_monitor
Licence: mit
💂 market monitor
Stars: ✭ 246
Projects that are alternatives of or similar to Market monitor
Gin Swagger
gin middleware to automatically generate RESTful API documentation with Swagger 2.0.
Stars: ✭ 2,001 (+713.41%)
Mutual labels: swagger, gin
watchman
📆 更夫(watchman)是一款可视化的定时任务配置 Web 工具,麻麻不用担心我漏掉任何更新啦!
Stars: ✭ 40 (-83.74%)
Mutual labels: cron, gin
Go Admin
基于Gin + Vue + Element UI的前后端分离权限管理系统脚手架(包含了:多租户的支持,基础用户管理功能,jwt鉴权,代码生成器,RBAC资源控制,表单构建,定时任务等)3分钟构建自己的中后台项目;文档:https://doc.go-admin.dev Demo: https://www.go-admin.dev Antd beta版本:https://preview.go-admin.dev
Stars: ✭ 5,439 (+2110.98%)
Mutual labels: swagger, gin
Snake
🐍 一款小巧的基于Go构建的开发框架,可以快速构建API服务或者Web网站进行业务开发,遵循SOLID设计原则
Stars: ✭ 615 (+150%)
Mutual labels: swagger, gin
Go Gin Api
基于 Gin 进行模块化设计的 API 框架,封装了常用功能,使用简单,致力于进行快速的业务研发。比如,支持 cors 跨域、jwt 签名验证、zap 日志收集、panic 异常捕获、trace 链路追踪、prometheus 监控指标、swagger 文档生成、viper 配置文件解析、gorm 数据库组件、gormgen 代码生成工具、graphql 查询语言、errno 统一定义错误码、gRPC 的使用 等等。
Stars: ✭ 730 (+196.75%)
Mutual labels: swagger, gin
Ginrpc
gin auto binding,grpc, and annotated route,gin 注解路由, grpc,自动参数绑定工具
Stars: ✭ 157 (-36.18%)
Mutual labels: swagger, gin
Neo4j Movies Template
A Neo4j movies React application with backends in Python/Flask and Node/Express.
Stars: ✭ 228 (-7.32%)
Mutual labels: swagger
Mockoon
Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
Stars: ✭ 3,448 (+1301.63%)
Mutual labels: swagger
Flasgger
Easy OpenAPI specs and Swagger UI for your Flask API
Stars: ✭ 2,825 (+1048.37%)
Mutual labels: swagger
Aws Lambda Typescript
This sample uses the Serverless Application Framework to implement an AWS Lambda function in TypeScript, deploy it via CloudFormation, publish it through API Gateway to a custom domain registered on Route53, and document it with Swagger.
Stars: ✭ 228 (-7.32%)
Mutual labels: swagger
Scalatra
Tiny Scala high-performance, async web framework, inspired by Sinatra
Stars: ✭ 2,529 (+928.05%)
Mutual labels: swagger
Flask Restplus
Fully featured framework for fast, easy and documented API development with Flask
Stars: ✭ 2,585 (+950.81%)
Mutual labels: swagger
Powerjob
Enterprise job scheduling middleware with distributed computing ability.
Stars: ✭ 3,231 (+1213.41%)
Mutual labels: cron
💂 market_monitor
- web framework: gin
- redis: redigo
- mysql: gorm
- logger: zerolog
- scheduler: cron
- config: viper
- json web token: jwt-go
- swagger docs: swaggo
克隆项目
$ git clone https://github.com/ErikJiang/market_monitor.git
单独运行项目
进入应用服务源码目录:
$ cd market_monitor/app/src/
目录结构:
app/src/:
├─config/ # 配置文件目录(运行前需要调整database、redis等参数配置)
├─controller/ # 控制器层目录
├─docs/ # 接口文档 Swagger 生成目录
├─extend/ # 扩展模块目录
├─middleware/ # 中间件目录
├─models/ # 数据模型层
├─public/ # 静态资源目录
├─router/ # 路由目录
├─schedule/ # 定时任务目录
├─service/ # 服务层目录
├─templates/ # 视图模板层目录
├─go.mod # 包管理文件
├─go.sum # 依赖包版本哈希文件
└─main.go # 运行入口main文件
自主创建数据库:
CREATE DATABASE db_monitor DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
启动服务:
$ go run main.go
运行过程若出现下载 module 失败,或 build 缓慢,可尝试设置GOPROXY
环境变量:
$ export GOPROXY=https://goproxy.io
运行后访问:http://localhost:8000/swagger/index.html
,查看接口文档;
Docker 运行构建
进入项目根目录:
$ cd market_monitor/
主目录结构:
market_monitor/
├─docker-compose.yaml # compose 镜像服务构建文件
├─app # monitor 应用服务
│ ├─src/ # 源码目录
│ └─dockerfile # docker 镜像构建文件
├─mysql # mysql 数据服务
│ ├─conf
│ │ ├─conf.d/ # 服务自定义配置(字符编码等)
│ │ └─init.d/ # 初始化SQL脚本(建库语句)及用户权限设置
│ ├─data/ # 数据文件挂载目录
│ └─logs/ # 日志目录
└─redis # redis 缓存服务
├─conf/ # 缓存服务自定义配置(密码等)
└─data/ # 数据文件挂载目录
由于 app/ 下的 dockerfile 指定 golang 编译所需依赖从 app/src/vendor/ 目录中读取,故需要提前准备编译所需依赖:
$ cd app/src/
$ go mod vendor
最后再回到项目根目录,使用 docker compose
以后台启动方式构建容器服务:
$ docker-compose up -d
简明教程请见: Wiki
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].