generated from songquanpeng/gin-template
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace gin-template to wechat-server
- Loading branch information
1 parent
22d13f1
commit 23bd08b
Showing
32 changed files
with
77 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,26 @@ | ||
# Gin Template | ||
> Template for Gin & React projects. | ||
# 微信公众号服务器 | ||
> 用以微信公众号的后端,提供登录验证功能 | ||
## Features | ||
+ [x] Built-in user management. | ||
+ [x] [GitHub OAuth login](https://github.com/settings/applications/new). | ||
+ [x] Email verification & password reset. | ||
+ [x] Request rate limitation. | ||
+ [x] Use GitHub Actions to build releases & Docker images. | ||
+ [x] Mobile friendly UI. | ||
## 功能 | ||
+ [ ] 登录验证 | ||
+ [ ] 自定义菜单 | ||
+ [ ] 自定义回复 | ||
+ [ ] Access Token 中控服务器 | ||
|
||
## Usage | ||
1. Download built binaries from [GitHub Releases](https://github.com/songquanpeng/gin-template/releases/latest). | ||
2. Run it: | ||
1. `chmod u+x gin-template` | ||
2. `./gin-template --port 3000` | ||
3. The username for the initial account is `root` and the password is `123456`. | ||
## 用法 | ||
1. 从 [GitHub Releases](https://github.com/songquanpeng/wechat-server/releases/latest) 下载可执行文件. | ||
2. 运行: | ||
1. `chmod u+x wechat-server` | ||
2. `./wechat-server --port 3000` | ||
3. 初始账户用户名为 `root`,密码为 `123456`。 | ||
|
||
## Basic Configurations | ||
The system works out of the box. | ||
## 配置 | ||
系统本身开箱即用。 | ||
|
||
There are several environment variables used to configure the system: | ||
1. `REDIS_CONN_STRING`: if set, will use Redis as the store of rate limitation instead of memory. | ||
+ Example: `REDIS_CONN_STRING=redis://default:redispw@localhost:49153` | ||
2. `SESSION_SECRET`: if set, will fix session secret. | ||
+ Example: `SESSION_SECRET=random_string` | ||
3. `SQL_DSN`: if set, will use target SQL database instead of SQLite. | ||
+ Example`SQL_DSN=root:123456@tcp(localhost:3306)/gofile` | ||
有一些环境遍历可供配置: | ||
1. `REDIS_CONN_STRING`: 设置之后,将启用 Redis。 | ||
+ 例如:`REDIS_CONN_STRING=redis://default:redispw@localhost:49153` | ||
2. `SESSION_SECRET`:设置之后,将使用给定会话密钥。 | ||
+ 例如:`SESSION_SECRET=random_string` | ||
3. `SQL_DSN`: 设置之后,将使用目标数据库而非 SQLite。 | ||
+ 例如:`SQL_DSN=root:123456@tcp(localhost:3306)/gofile` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module gin-template | ||
module wechat-server | ||
|
||
// +heroku goVersion go1.18 | ||
go 1.18 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.