diff --git a/README.md b/README.md index 883c96be4..9bab33390 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,10 @@ Join our [open Discord community](https://discord.gg/qvkaMdQ8da) to interact wit To run CISO Assistant locally in a straightforward way, you can use Docker compose. +0. Update docker + +Make sure you have a recent version of docker (>= 25.0). + 1. Clone the repository ```sh @@ -73,7 +77,7 @@ When asked for, enter your email and password for your superuser. You can then reach CISO Assistant using your web brower at [https://localhost:8443/](https://localhost:8443/) -For the following executions, use "docker-compose up" directly. +For the following executions, use "docker compose up" directly. If you want to restart a fresh install, simply delete the db directory, where the database is stored. diff --git a/frontend/src/routes/(app)/libraries/[id=urn]/+layout.server.ts b/frontend/src/routes/(app)/libraries/[id=urn]/+layout.server.ts deleted file mode 100644 index 86d467871..000000000 --- a/frontend/src/routes/(app)/libraries/[id=urn]/+layout.server.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BASE_API_URL } from '$lib/utils/constants'; - -import type { LayoutServerLoad } from './$types'; - -export const load: LayoutServerLoad = async ({ fetch, params }) => { - const endpoint = `${BASE_API_URL}/libraries/${params.id}/`; - - return { - tree: fetch(`${BASE_API_URL}/libraries/${params.id}/tree`).then((res) => res.json()) ?? {}, - library: await fetch(endpoint).then((res) => res.json()) - }; -}; diff --git a/frontend/src/routes/(app)/libraries/[id=urn]/+server.ts b/frontend/src/routes/(app)/libraries/[id=urn]/+server.ts index 4411bbf10..2abb9b113 100644 --- a/frontend/src/routes/(app)/libraries/[id=urn]/+server.ts +++ b/frontend/src/routes/(app)/libraries/[id=urn]/+server.ts @@ -4,7 +4,6 @@ import { error, type NumericRange } from '@sveltejs/kit'; import type { RequestHandler } from './$types'; export const GET: RequestHandler = async ({ fetch, url }) => { - console.log(url); const endpoint = `${BASE_API_URL}${url.pathname}/${ url.searchParams ? '?' + url.searchParams.toString() : '' }`; diff --git a/frontend/src/routes/(app)/libraries/[id=urn]/tree/+server.ts b/frontend/src/routes/(app)/libraries/[id=urn]/tree/+server.ts index 4411bbf10..2abb9b113 100644 --- a/frontend/src/routes/(app)/libraries/[id=urn]/tree/+server.ts +++ b/frontend/src/routes/(app)/libraries/[id=urn]/tree/+server.ts @@ -4,7 +4,6 @@ import { error, type NumericRange } from '@sveltejs/kit'; import type { RequestHandler } from './$types'; export const GET: RequestHandler = async ({ fetch, url }) => { - console.log(url); const endpoint = `${BASE_API_URL}${url.pathname}/${ url.searchParams ? '?' + url.searchParams.toString() : '' }`;