Skip to content

LJ147/leetcodegroup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

一、LeetCode小组打卡:一时打卡

1.1 项目背景

和朋友相约在LeetCode上打卡,就组成了小组的形式,既然要打卡,自然就有查卡,一开始是大家刷完题把截图 发到群里,然后肉眼查卡,后来为了偷懒就写了这个小玩意(为了偷懒搞出更多事情系列)。

1.2 项目预览

部署地址:https://group.hellogod.cn

pc端 移动端

1.3 功能

定时查询小组内同学的打卡情况,你可以在这里 提交 LeetCode 地址

1.4 实现逻辑

爬虫根据用户主页地址,每小时定期爬取基础信息,存储在MySQL数据库,后端为前端提供对应接口。

三、技术栈

3.1 前端

UI基于 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

四、部署

仅适用于 Linux / macOS

1.配置ssh 免密登录:将本地的 ~/.ssh/id_rsa.pub 添加到服务器的 ~/.ssh/authorized_keys 中(cat file >> ~/.ssh/authorized_keys)

2.执行部署脚本: 在项目根目录下执行: bash deploy.sh

公众号:一时博客

欢迎关注公众号:一时博客

About

LeetCode小组打卡:一时打卡

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages