-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME.md
65 lines (33 loc) · 1.86 KB
/
README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# 一、LeetCode小组打卡:一时打卡
## 1.1 项目背景
和朋友相约在LeetCode上打卡,就组成了小组的形式,既然要打卡,自然就有查卡,一开始是大家刷完题把截图
发到群里,然后肉眼查卡,后来为了偷懒就写了这个小玩意(为了偷懒搞出更多事情系列)。
## 1.2 项目预览
> 部署地址:[https://group.hellogod.cn](http://group.hellogod.cn/#/check)


## 1.3 功能
定时查询小组内同学的打卡情况,你可以在这里 [提交](https://group.hellogod.cn/#/submit) LeetCode 地址
## 1.4 实现逻辑
爬虫根据用户主页地址,每小时定期爬取基础信息,存储在MySQL数据库,后端为前端提供对应接口。
# 三、技术栈
## 3.1 前端
UI基于 [startbootstrap-sb-admin-2](https://github.com/BlackrockDigital/startbootstrap-sb-admin-2) ,数据绑定基于AngularJS,页面跳转基于`ui-router`。
核心 js 文件为
- `resources/js/app/app.js`
- `resources/js/app/controllers.js`
## 3.2 后端
Spring Boot 2.1.2
- `bean` 实体类
- `repository` 数据库操作
- `service` 服务层
- `controller` 对外发布接口
## 3.3 爬虫
Scrapy 1.5.0
爬虫部分代码:[spider_leetcode](https://github.com/LJ147/spider_leetcode)
# 四、部署
> 仅适用于 Linux / macOS
1.配置ssh 免密登录:将本地的 ~/.ssh/id_rsa.pub 添加到服务器的 ~/.ssh/authorized_keys 中(cat file >> ~/.ssh/authorized_keys)
2.执行部署脚本: 在项目根目录下执行: `bash deploy.sh` 。
# 公众号:一时博客
