Skip to content

Commit

Permalink
👋 my geek time
Browse files Browse the repository at this point in the history
  • Loading branch information
zkep committed Dec 28, 2024
1 parent 2de0466 commit d18811a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 85 deletions.
63 changes: 11 additions & 52 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@

### [在线体验](https://mygeektime.anyfun.tech)

### 查看本地文档
```shell
git clone https://github.com/zkep/mygeektime.git

pip install mkdocs-material

mkdocs serve

```
浏览器访问: http://127.0.0.1:8000/


### 安装

Expand Down Expand Up @@ -66,54 +77,6 @@ mygeektime server
mygeektime server --config=config.yml
```

##### 默认配置文件
```yaml
server:
app_name: My Geek Time
run_mode: debug
http_addr: 0.0.0.0
http_port: 8090
jwt:
secret: mygeektime-secret
expires: 7200
database:
# driver: mysql
# source: root:123456@tcp(127.0.0.1:3306)/mygeektime?charset=utf8&parseTime=True&loc=Local&timeout=1000ms
# driver: postgres
# source: host=127.0.0.1 user=postgres password=123456 dbname=mygeektime port=5432 sslmode=disable TimeZone=Asia/Shanghai
driver: sqlite # mysql|postgres|sqlite
source: mygeektime.db
max_idle_conns: 10
max_open_conns: 10
storage: # mp4 或 mp3 存储目录
directory: repo # 自定义下载文件夹,默认执行目录下的repo目录
driver: local
bucket: object
host: http://127.0.0.1:8090 # 端口与server中的 http_port 保持一致
browser: #
open_browser: true # 服务启动后自动打开浏览器

```


### 查看帮助
```shell
mygeektime -help
```
#### 查看帮助输出
```shell
My GeekTime CLI 0.0.1

Available commands:

server This is http server
cli This is command

Flags:

-help
Get help on the 'mygeektime' command.
```

### 依赖项

Expand All @@ -134,10 +97,6 @@ cd ffmpeg
make && make install
```

### 模拟用户登录:

> 方式1: 浏览器开发者工具获取geektime有效cookie
#### 感谢
* [gin](https://github.com/gin-gonic/gin)
* [amis](https://github.com/baidu/amis)
Expand Down
42 changes: 9 additions & 33 deletions README_US.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ This is a tool to obtain the geektime video or articles with you geektime accoun

### [Show Time](https://mygeektime.anyfun.tech)

### Local Docs
```shell
git clone https://github.com/zkep/mygeektime.git

pip install mkdocs-material

mkdocs serve
```
browser web url: http://127.0.0.1:8000/

#### Install

Expand Down Expand Up @@ -65,39 +74,6 @@ mygeektime server
mygeektime server --config=config.yml
```

##### Default configuration file
```yaml
server:
app_name: My Geek Time
run_mode: debug
http_addr: 0.0.0.0
http_port: 8090
jwt:
secret: mygeektime-secret
expires: 7200
database:
# driver: mysql
# source: root:123456@tcp(127.0.0.1:3306)/mygeektime?charset=utf8&parseTime=True&loc=Local&timeout=1000ms
# driver: postgres
# source: host=127.0.0.1 user=postgres password=123456 dbname=mygeektime port=5432 sslmode=disable TimeZone=Asia/Shanghai
driver: sqlite # mysql|postgres|sqlite
source: mygeektime.db
max_idle_conns: 10
max_open_conns: 10
storage: # mp4 or mp3 save folder
driver: local
directory: repo # Customize download folder, default to execute repo directory under the directory
bucket: object
host: http://127.0.0.1:8090 # Keep the port consistent with the http_port in the server
browser:
open_browser: true # Automatically open browser after service startup
```
Commond help:
```shell
mygeektime -help
```

#### [FFmpeg](https://ffmpeg.org/download.html)

MacOS
Expand Down

0 comments on commit d18811a

Please sign in to comment.