校园二手交易应用的后端实现
- 二手交易
You have to export these environment variables.
Name | Description | Value |
---|---|---|
MODE | 运行环境 | dev, test, production |
DB_URL | 数据库 URL (mysql) | user:pass@tcp(127.0.0.1:3306)/dbname?parseTime=tru |
git clone https://github.com/hasbai/keyi.git
cd keyi
# install swag and generate docs
go install github.com/swaggo/swag/cmd/swag@latest
swag init --parseInternal --parseDependency --parseDepth 1 # to generate the latest docs, this should be run before compiling
# build and run
go build -o keyi.exe
./keyi.exe
Please export MODE=test
Please visit http://localhost:8000/docs after running app
Feel free to dive in! Open an issue or Submit PRs.
We are now in rapid development, any contribution would be of great help. For the developing roadmap, please visit this issue.
This project exists thanks to all the people who contribute.