docs: update the collaborative editing guide

This commit is contained in:
Hans Pagel
2021-02-24 12:02:52 +01:00
parent 432ff51753
commit bc88c601b3
2 changed files with 93 additions and 93 deletions

View File

@@ -21,16 +21,21 @@ Be nice! The content of this editor is shared with other users from the Internet
## Backend
In case youre wondering what kind of sorcery you need on the server to achieve this, here is the whole backend code for the demo:
:::warning Request early access
Our plug & play collaboration backend hocuspocus is still work in progress. If you want to give it a try, [request early access](https://hocuspocus.dev/).
:::
```js
import { Server } from '@hocuspocus/server'
import { LevelDB } from '@hocuspocus/leveldb'
import { RocksDB } from '@hocuspocus/rocksdb'
const server = Server.configure({
port: 80,
persistence: new LevelDB({
path: './database',
}),
extensions: [
new RocksDB({
path: './database',
})
],
})
server.listen()