From f207c491ff8d2f0380f9aedf5306d575de9a2d52 Mon Sep 17 00:00:00 2001 From: Cedric Evers <12080057+CeEv@users.noreply.github.com> Date: Mon, 17 Jun 2024 12:19:55 +0200 Subject: [PATCH 1/3] Update Local setup.md --- docs/services/tldraw/Local setup.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/services/tldraw/Local setup.md b/docs/services/tldraw/Local setup.md index f929965..2772616 100644 --- a/docs/services/tldraw/Local setup.md +++ b/docs/services/tldraw/Local setup.md @@ -4,8 +4,18 @@ 1. Run all of the apps needed for schulcloud like mongodb, backend, frontend, file storage etc. 2. Run redis i.e. in a docker container, it will work on localhost:6379 by default which is what the REDIS_URI env var is set to -3. On schulcloud-server repo: npm run nest:start:tldraw:dev -4. On tldraw-client repo: npm run dev +3. Add to server repo the .env with following values + Please note redis default user is use and you can pass random value as password like the 123. + REDIS_URI=redis://default:123@127.0.0.1:6379 + TLDRAW_ADMIN_API_CLIENT__API_KEY=randomString + ADMIN_API__ALLOWED_API_KEYS=randomString + TLDRAW_ADMIN_API_CLIENT__BASE_URL=http://localhost:3349 +4. To run + 1. npm run nest:start:dev (schulcloud-server) + 2. npm run nest:start:tldraw:dev (schulcloud-server) + 3. npm run dev (schulcloud-client) + 4. npm run servce (nuxt-client) + 5. npm run dev (tldraw-client) ### Create new whiteboard: From 44cf7dedae61f19445638c6effd2bb171965da46 Mon Sep 17 00:00:00 2001 From: Cedric Evers <12080057+CeEv@users.noreply.github.com> Date: Mon, 17 Jun 2024 12:29:23 +0200 Subject: [PATCH 2/3] Add one hint. --- docs/services/tldraw/Local setup.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/services/tldraw/Local setup.md b/docs/services/tldraw/Local setup.md index 2772616..91ac217 100644 --- a/docs/services/tldraw/Local setup.md +++ b/docs/services/tldraw/Local setup.md @@ -2,20 +2,20 @@ ### To run tldraw locally: -1. Run all of the apps needed for schulcloud like mongodb, backend, frontend, file storage etc. -2. Run redis i.e. in a docker container, it will work on localhost:6379 by default which is what the REDIS_URI env var is set to -3. Add to server repo the .env with following values +1. Run redis i.e. in a docker container, it will work on localhost:6379 by default which is what the REDIS_URI env var is set to, for example on wsl: https://redis.io/docs/latest/operate/oss_and_stack/install/install-redis/install-redis-on-windows/ +2. Add to server repo the .env with following values Please note redis default user is use and you can pass random value as password like the 123. REDIS_URI=redis://default:123@127.0.0.1:6379 TLDRAW_ADMIN_API_CLIENT__API_KEY=randomString ADMIN_API__ALLOWED_API_KEYS=randomString TLDRAW_ADMIN_API_CLIENT__BASE_URL=http://localhost:3349 -4. To run +3. To run 1. npm run nest:start:dev (schulcloud-server) - 2. npm run nest:start:tldraw:dev (schulcloud-server) - 3. npm run dev (schulcloud-client) - 4. npm run servce (nuxt-client) - 5. npm run dev (tldraw-client) + 2. nest:start:files-storage:dev (schulcloud-server with s3, if you want to upload files) + 3. npm run nest:start:tldraw:dev (schulcloud-server) + 4. npm run dev (schulcloud-client) + 5. npm run servce (nuxt-client) + 6. npm run dev (tldraw-client) ### Create new whiteboard: From 4448a520bad75c5a3219798dcb545dbc443d8ec6 Mon Sep 17 00:00:00 2001 From: Cedric Evers <12080057+CeEv@users.noreply.github.com> Date: Mon, 17 Jun 2024 12:29:41 +0200 Subject: [PATCH 3/3] fix typo --- docs/services/tldraw/Local setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/services/tldraw/Local setup.md b/docs/services/tldraw/Local setup.md index 91ac217..f0be03b 100644 --- a/docs/services/tldraw/Local setup.md +++ b/docs/services/tldraw/Local setup.md @@ -11,7 +11,7 @@ TLDRAW_ADMIN_API_CLIENT__BASE_URL=http://localhost:3349 3. To run 1. npm run nest:start:dev (schulcloud-server) - 2. nest:start:files-storage:dev (schulcloud-server with s3, if you want to upload files) + 2. npm run nest:start:files-storage:dev (schulcloud-server with s3, if you want to upload files) 3. npm run nest:start:tldraw:dev (schulcloud-server) 4. npm run dev (schulcloud-client) 5. npm run servce (nuxt-client)