mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: init collaboration backend & adapt editor
This commit is contained in:
parent
83760064e7
commit
953de4cc67
7 changed files with 100 additions and 44 deletions
9
apps/collaboration/app.ts
Normal file
9
apps/collaboration/app.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { Hocuspocus } from "@hocuspocus/server";
|
||||
|
||||
// Configure the server …
|
||||
const server = new Hocuspocus({
|
||||
port: 1998,
|
||||
});
|
||||
|
||||
// … and run it!
|
||||
server.listen();
|
||||
19
apps/collaboration/package.json
Normal file
19
apps/collaboration/package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue