/keyi

校园二手交易平台

Primary LanguageGoApache License 2.0Apache-2.0

可易

校园二手交易应用的后端实现

Features

  • 二手交易

Usage

Config

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

Build

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

Test

Please export MODE=test

API Docs

Please visit http://localhost:8000/docs after running app

Badge

stars issues pull requests

standard-readme compliant

Powered by

Go Swagger

Contributing

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.

Contributors

This project exists thanks to all the people who contribute.

contributors

Licence

license © hasbai