chore: update README (#9)

This commit is contained in:
zyc9012 2022-04-26 13:37:42 +08:00
parent 13f9109fb8
commit 36da19520e
4 changed files with 6 additions and 2 deletions

View File

@ -146,7 +146,7 @@ op对后端数据修改和同步在线协同数据非常有用。
我们在 `backend-demo` 目录中展示了一个例子,使用 `Express` (后端) and `MongoDB` (数据库) 实现。
通过 `node index.js` 运行后端服务器,然后访问 [Collabration example](https://ruilisi.github.io/fortune-sheet-demo/?path=/story/collabration--example) 即可体验。
通过 `node index.js` 运行后端服务器,然后访问 [Collabration example](https://ruilisi.github.io/fortune-sheet-demo/?path=/story/collabration--example) 即可体验。(可通过 http://localhost:8081/init 初始化数据)
详细的 `Op` 文档, 请参考 [fortune-sheet-doc](https://ruilisi.github.io/fortune-sheet-docs/zh/guide/op.html)

View File

@ -149,7 +149,7 @@ The op is useful for database modification and syncing state in online collabrat
A working example with `Express` (backend server) and `MongoDB` (data persistence) is avaiable in `backend-demo` folder.
Run it with `node index.js` and visit [Collabration example](https://ruilisi.github.io/fortune-sheet-demo/?path=/story/collabration--example)
Run it with `node index.js` and visit [Collabration example](https://ruilisi.github.io/fortune-sheet-demo/?path=/story/collabration--example) (initialize data by visiting http://localhost:8081/init)
For detailed doc about `Op`, refer to [fortune-sheet-doc](https://ruilisi.github.io/fortune-sheet-docs/guide/op.html)

View File

@ -19,6 +19,8 @@ A working example with `Express` (backend server) and `MongoDB` (data persistenc
Run it with `node index.js` and visit [Collabration example](https://ruilisi.github.io/fortune-sheet-demo/?path=/story/collabration--example)
> You can initialize data by visiting http://localhost:8081/init
## Format
Each `Op` has the following structure.

View File

@ -19,6 +19,8 @@ op对后端数据修改和同步在线协同数据非常有用。
通过 `node index.js` 运行后端服务器,然后访问 [Collabration example](https://ruilisi.github.io/fortune-sheet-demo/?path=/story/collabration--example) 即可体验。
> 可通过 http://localhost:8081/init 初始化数据
## 格式
每个 `Op` 的格式如下