https://github.com/singcl/gin-taro-api
Wonderful Web API service backend.
https://github.com/singcl/gin-taro-api
api go golang vue3 vue3-composition-api
Last synced: 7 months ago
JSON representation
Wonderful Web API service backend.
- Host: GitHub
- URL: https://github.com/singcl/gin-taro-api
- Owner: singcl
- Created: 2022-06-06T10:11:26.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-09T16:54:15.000Z (over 3 years ago)
- Last Synced: 2025-01-03T13:17:58.424Z (over 1 year ago)
- Topics: api, go, golang, vue3, vue3-composition-api
- Language: Go
- Homepage: https://wx.imcoco.top
- Size: 7.69 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README

[](https://docs.github.com/cn/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge)
[](http://commitizen.github.io/cz-cli/)
[](https://conventionalcommits.org)
# GIN-TARO-API
Inspired by [go-gin-api](https://github.com/xinliangnote/go-gin-api). about some other resource [gin framework](https://gin-gonic.com/zh-cn/docs/quickstart/)
,[moose-go](https://gitee.com/shizidada/moose-go)
## Start
go run github.com/singcl/gin-taro-api -env pro
## mysql
```sql
-- root 用户登录
sudo mysql
-- 创建数据库
CREATE DATABASE gin_taro_api DEFAULT CHARACTER SET = 'utf8mb4';
/* 为远程用户授权 */
GRANT ALL PRIVILEGES ON gin_taro_api.* TO 'taro'@'127.0.0.1' WITH GRANT OPTION;
```
## Mail
告警邮件发送调试通过 SUCCESS😇
## Debug
在 vscode 中调试应用程序
相关参考文档
```sh
# https://github.com/golang/vscode-go/blob/master/docs/debugging.md
# https://code.visualstudio.com/docs/languages/go#_debugging
# https://juejin.cn/post/6844904087763304462
```
1. 手动安装`delve` Go debugger
```sh
# Install the latest release:
$ go install github.com/go-delve/delve/cmd/dlv@latest
```
2. 配置 launch.json
```js
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
// https://github.com/golang/vscode-go/blob/master/docs/debugging.md
// https://code.visualstudio.com/docs/languages/go#_debugging
// https://juejin.cn/post/6844904087763304462
```
```json
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}"
}
]
}
```
## 微信小程序登陆核心代码片段
[小程序登陆](./Wx.md)
## CHANGELOG
project [changelog](./CHANGELOG.md) is hear.use [git-chaglog](https://github.com/git-chglog/git-chglog) auto generate changelog.
```sh
# 安装
go install -v github.com/git-chglog/git-chglog/cmd/git-chglog@latest
# git-chglog requires configuration files and templates to generate a CHANGELOG
# However, it is a waste of time to create configuration files and templates from scratch.
# Therefore we recommend using the --init option which will create them interactively 👍
git-chglog --init
# You are now ready for configuration files and templates!
# Let's immediately generate a CHANGELOG of your project. By doing the following simple command, Markdown for your CHANGELOG is displayed on stdout.
git-chglog
# Use -o (--output) option if you want to output to a file instead of stdout.
git-chglog -o CHANGELOG.md
```
## 管理界面
| 预览 | 预览 |
| :---------------------------------------: | :------------------------------------: |
|  |  |
|  |  |
## 开启内网穿透
```sh
# server
cd /usr/local/frp
./frps -c ./frps.ini
# client windows
./frpc.exe -c ./frpc.ini
# url
https://frps.imcoco.top
```