rapide

command module
v0.0.0-...-7253f33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 1 Imported by: 0

README


Rapide

CI/CD Badge GitHub License GitHub go.mod Go version Sourcegraph codecov Go Reference rcard
👋 Welcome to Rapide!

Rapide is a simple backend project framework developed in Go, with features covering the most popular technology stacks. It's highly suitable for beginners looking to get started with learning.


Install air

Air is a hot-reloading tool for Go. It can monitor changes to files or directories, automatically compile, and restart the program, thereby improving development efficiency. It requires Go version 1.16 or higher.

go install github.com/cosmtrek/air@latest

Run on IDE

git clone https://github.com/yahahaff/rapide.git
cd rapide
go mod tidy
air

Envs

变量名 默认值 简介
APP_ENV debug debug,test,release
APP_PORT 8000 app port
DB_DRIVER sqlite 数据库连接驱动器 支持mysql,sqlite
DB_CONNECTION_HOST localhost mysql主机地址
DB_CONNECTION_PORT 3306 mysql数据库端口
DB_CONNECTION_USERNAME root mysql数据库用户
DB_CONNECTION_PASSWORD password mysql数据库密码
DB_CONNECTION_DATABASE rapide mysql数据库
DB_CONNECTION_FILE database.db sqlite db file
REDIS_HOST 8000 redis host
REDIS_PORT 6379 redis port
LOG_PATH rapide.log 日志路径

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package cmd /*
Package cmd /*
Package initialize 处理程序初始化逻辑
Package initialize 处理程序初始化逻辑
internal
controllers
Package controllers Package api Package v1 处理业务逻辑, 控制器 v1
Package controllers Package api Package v1 处理业务逻辑, 控制器 v1
dao
middlewares
Package middlewares 存放系统中间件
Package middlewares 存放系统中间件
models
Package models 模型通用属性和方法
Package models 模型通用属性和方法
models/sys
Package sys
Package sys
requests/validators
Package validators 存放自定义规则和验证器
Package validators 存放自定义规则和验证器
response
Package response 响应处理工具
Package response 响应处理工具
pkg
app
captcha
Package captcha 处理图片验证码逻辑
Package captcha 处理图片验证码逻辑
console
Package console 命令行辅助方法
Package console 命令行辅助方法
database
Package database 数据库操作
Package database 数据库操作
file
Package file 文件操作辅助函数
Package file 文件操作辅助函数
hash
Package hash 哈希操作类
Package hash 哈希操作类
helpers
Package helpers 存放辅助方法
Package helpers 存放辅助方法
jwt
Package jwt 处理 JWT 认证
Package jwt 处理 JWT 认证
mail
Package mail 发送短信
Package mail 发送短信
paginator
Package paginator 处理分页逻辑
Package paginator 处理分页逻辑
redis
Package redis 工具包
Package redis 工具包
str
Package str 字符串辅助方法
Package str 字符串辅助方法
verifycode
Package verifycode 用以发送手机验证码和邮箱验证码
Package verifycode 用以发送手机验证码和邮箱验证码

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL