Categorygithub.com/yahahaff/rapide
repositorypackage
0.0.0-20241003033146-7253f33ec853
Repository: https://github.com/yahahaff/rapide.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# 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_ENVdebugdebug,test,release
APP_PORT8000app port
DB_DRIVERsqlite数据库连接驱动器 支持mysql,sqlite
DB_CONNECTION_HOSTlocalhostmysql主机地址
DB_CONNECTION_PORT3306mysql数据库端口
DB_CONNECTION_USERNAMErootmysql数据库用户
DB_CONNECTION_PASSWORDpasswordmysql数据库密码
DB_CONNECTION_DATABASErapidemysql数据库
DB_CONNECTION_FILEdatabase.dbsqlite db file
REDIS_HOST8000redis host
REDIS_PORT6379redis port
LOG_PATHrapide.log日志路径