diff --git a/docs/src/content/docs/guides/custom-categories.md b/docs/src/content/docs/guides/custom-categories.md index d8cea181..0c14b843 100644 --- a/docs/src/content/docs/guides/custom-categories.md +++ b/docs/src/content/docs/guides/custom-categories.md @@ -7,10 +7,15 @@ wanderer uses categories to classify what kind of activity a trail belongs to. O ## Backend access -First, you need access to the PocketBase backend. If you are using docker make sure to forward the internal port 8090 to a public port. With the default configuration, the PocketBase admin panel is available at `http://localhost:8090/_/`. If this is your first time visiting the panel you will need to create an admin account. Afterwards, you will have access to all tables in the backend and can modify the underlying data directly. +First, you need access to the PocketBase backend. If you are using docker make sure to forward the internal port 8090 to a public port. With the default configuration, the PocketBase admin panel is available at `http://localhost:8090/_/`. If this is your first time visiting the panel you will need to create an admin account. +To create backend acces navigate to your docker-compose.yaml file and type: +``` +docker compose exec -it db /pocketbase superuser upsert email@example.com myverysecurepassword +``` +Now, you will have access with the User" email@example.com and the Password "myverysecurepassword" to all tables in the backend and can modify the underlying data directly. ## Modifying categories ![Pocketbase Categories](../../../assets/guides/pocketbase_categories.png) -In the PocketBase admin panel, click on the `categories` table in the list on the left side. All existing categories will be listed here. To edit one simply click on the row, edit the data you want to change, and click "Save". To delete a category check the box at the beginning of the row and click "Delete selected". To create a new category click the "New record" button in the top right corner, give your new category a name and a background image, and click "Save". \ No newline at end of file +In the PocketBase admin panel, click on the `categories` table in the list on the left side. All existing categories will be listed here. To edit one simply click on the row, edit the data you want to change, and click "Save". To delete a category check the box at the beginning of the row and click "Delete selected". To create a new category click the "New record" button in the top right corner, give your new category a name and a background image, and click "Save".