v3nayou
所属分类:微信小程序
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2018-06-27 10:11:12
上 传 者:
sh-1993
说明: 广州大学与中山大学的工具类应用, 支持广州大学教务成绩课表, 校历, 图书, 实时公交, 四六级, 公选课查询. (后端模块)
(The tool application of Guangzhou University and Sun Yat sen University supports the query of Guangzhou University s academic record schedule, school calendar, books, real-time bus, CET-4 and CET-6, and public elective courses (Back end module))
文件列表:
.env.example (240, 2018-06-27)
LICENSE (11356, 2018-06-27)
cfg/ (0, 2018-06-27)
cfg/database.go (477, 2018-06-27)
cfg/g.go (601, 2018-06-27)
cfg/member.go (2211, 2018-06-27)
cfg/template.go (333, 2018-06-27)
main.go (272, 2018-06-27)
routes/ (0, 2018-06-27)
routes/common.go (2755, 2018-06-27)
routes/home.go (566, 2018-06-27)
routes/member.go (6641, 2018-06-27)
routes/middleware.go (4529, 2018-06-27)
routes/router.go (828, 2018-06-27)
routes/schedule.go (989, 2018-06-27)
routes/score.go (1734, 2018-06-27)
routes/sendsms.go (2336, 2018-06-27)
routes/start.go (7035, 2018-06-27)
routes/teacher.go (2286, 2018-06-27)
routes/ucenter.go (786, 2018-06-27)
spiders/ (0, 2018-06-27)
spiders/gzhu/ (0, 2018-06-27)
spiders/gzhu/common.go (1036, 2018-06-27)
spiders/gzhu/login.go (1694, 2018-06-27)
spiders/gzhu/login_test.go (722, 2018-06-27)
spiders/gzhu/schedule.go (1554, 2018-06-27)
spiders/gzhu/schedule_test.go (714, 2018-06-27)
spiders/gzhu/score.go (1871, 2018-06-27)
spiders/gzhu/score_test.go (752, 2018-06-27)
spiders/gzhu/teacher.go (5646, 2018-06-27)
utils/ (0, 2018-06-27)
utils/encryption.go (2172, 2018-06-27)
utils/helpers.go (2264, 2018-06-27)
utils/helpers_test.go (732, 2018-06-27)
vendor/ (0, 2018-06-27)
vendor/github.com/ (0, 2018-06-27)
vendor/github.com/axgle/ (0, 2018-06-27)
vendor/github.com/axgle/mahonia/ (0, 2018-06-27)
... ...
# v3nayou
微信哪有服务号, 做最好用的校园服务平台!
广州大学与中山大学的工具类应用, 支持广州大学教务成绩课表, 校历, 图书, 实时公交, 四六级, 公选课查询.
欢迎添砖加瓦~ 本项目为公众号自定义菜单的Go后端接口, 具体实现包含`首屏界面`, `微信授权`和`教务系统`.
对应的前端项目(Vue2): [https://github.com/Lofanmi/v3nayou-spa](https://github.com/Lofanmi/v3nayou-spa)
## Requirements
- Go 1.8+
- MySQL 5.5+
- Nginx
## Deploy
#### 前端
```bash
# 克隆前端项目到本地
cd /home/wwwroot/
git clone https://github.com/Lofanmi/v3nayou-spa.git
```
#### 后端
```bash
# GOPATH 路径可以自己定义
export GOPATH=/home/golang
# 导入SQL
cd $GOPATH/src/github.com/Lofanmi/v3nayou/db_schema/
mysql -h 127.0.0.1 -u root -p < v3nayou.sql
# 拉取
go get -v github.com/Lofanmi/v3nayou
# 编译
cd $GOPATH/src/github.com/Lofanmi/v3nayou
go build
# 配置环境变量
cp .env.example .env
vi .env
# 运行 (可配合 supervisor 等工具实现常驻)
./v3nayou
```
#### Nginx 配置文件
```
server
{
listen 80;
server_name localhost;
root /path/to/v3nayou-spa/dist;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 30d;
}
location ^~ /school/ {
proxy_pass http://127.0.0.1:5666;
}
location ^~ /api/ {
proxy_pass http://127.0.0.1:5666;
}
location ~ /\.
{
deny all;
}
location = / {
index index.html;
}
access_log /path/to/log/v3nayou-spa.log;
}
```
## License
Apache-2.0
近期下载者:
相关文件:
收藏者: