This repository has been archived by the owner on Mar 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bab0162
commit 5d2d85e
Showing
1 changed file
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |