Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Android-KitKat committed Nov 21, 2020
1 parent bab0162 commit 5d2d85e
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,37 @@
# twikoo-import-tools-typecho
Typecho 到 Twikoo 迁移脚本
[Typecho][Twikoo] 迁移脚本

## 准备
在使用前需要有可供连接的 [MySQL] 数据库,其中存放着 [Typecho] 的数据。

没有相关环境的话,可在本地使用 [XAMPP] 来快速搭建。

之后再使用附带的 [phpMyAdmin][Typecho] 的数据导入数据库。

## 使用
1. 安装 [Git][Node.js]

2. 找一个合适的目录。

运行`git clone https://github.com/Android-KitKat/twikoo-import-tools-typecho.git`,克隆仓库到本地。

3. 运行`cd twikoo-import-tools-typecho`,进入目录。

4. 运行`npm install`,安装依赖。

5. 编辑`config.yml`文件,填入正确的配置。

6. 运行`npm run start`,脚本将会读取数据库并生成可导入 [Twikoo] 的数据文件。

生成的文件名为`comment.json`

7. 确认无误后,在腾讯云的 [云开发 数据库] 导入评论数据到`comment`集合中。

[Typecho]: http://typecho.org
[Twikoo]: https://twikoo.js.org
[MySQL]: https://www.mysql.com/cn/
[XAMPP]: https://www.apachefriends.org/zh_cn/
[phpMyAdmin]: https://www.phpmyadmin.net
[Git]: https://git-scm.com
[Node.js]: https://nodejs.org
[云开发 数据库]: https://console.cloud.tencent.com/tcb/db/

0 comments on commit 5d2d85e

Please sign in to comment.