feat: init collaboration backend & adapt editor

This commit is contained in:
swve 2024-04-01 16:47:41 +02:00
parent 83760064e7
commit 953de4cc67
7 changed files with 100 additions and 44 deletions

View file

@ -0,0 +1,9 @@
import { Hocuspocus } from "@hocuspocus/server";
// Configure the server …
const server = new Hocuspocus({
port: 1998,
});
// … and run it!
server.listen();

View file

@ -0,0 +1,19 @@
{
"name": "collaboration",
"version": "1.0.0",
"description": "",
"main": "app.ts",
"scripts": {
"start": "bun app.ts"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@hocuspocus/server": "^2.11.3",
"bun": "^1.0.36",
"typescript": "5.4.3",
"y-protocols": "^1.0.6",
"yjs": "^13.6.14"
}
}