Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

docs: add steps to local.md on how to make yourself an admin (#814)

John William Daviscb6c14680586
diff --git a/LOCAL.md b/LOCAL.md
index 677034b2..5b4929cf 100644
--- a/LOCAL.md
+++ b/LOCAL.md
@@ -114,6 +114,18 @@ Once the server is running you can seed and sync data
[planetscale-quick-start]: https://planetscale.com/docs/tutorials/planetscale-quick-start-guide
[new-oauth]: https://github.com/settings/applications/new
+### Make Yourself an Admin
+
+1. Ensure you have logged into your local instance atleast once
+2. Run `pnpm db:studio` - to open [Prisma Studio](https://www.prisma.io/docs/concepts/components/prisma-studio)
+
+ ![prisma studio](./media/prisma-studio-models.png)
+
+3. Click on the `User` table from the list of models
+4. Locate your username and open record in new tab to modify Role
+
+ ![modify role](./media/change-role-to-admin.png)
+
#### Dependencies
UI Library: [shadcn](https://ui.shadcn.com/)
@@ -130,7 +142,7 @@ pnpm test:e2e:install
You can use the production server or the dev server to run the e2e tests.
-> [!WARNING]
+> [!WARNING]
> The dev server may cause tests to timeout.
### 2.a Production server
diff --git a/media/change-role-to-admin.png b/media/change-role-to-admin.png
new file mode 100644
index 00000000..09c290d3
Binary files /dev/null and b/media/change-role-to-admin.png differ
diff --git a/media/prisma-studio-models.png b/media/prisma-studio-models.png
new file mode 100644
index 00000000..4bc5c0be
Binary files /dev/null and b/media/prisma-studio-models.png differ