You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/developer.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,6 @@ After running `pnpm dev` the following services should come up:
16
16
-**Upgrade dependencies** with `pnpm upgrade -ri`. If you use `-L` aswell you can upgrade major package version, but make sure you don't upgrade to dependencies that require Node 22.
17
17
-**Bump versions** by using `pnpm changeset`.
18
18
-**Connect to the development database** with `psql -h db -U postgres` and the password `postgres`.
19
-
-**Load a database dump** with `psql -h db -U postgres -d dump -f db_backup_2025-10-01.sql`. Create the database beforehand with `createdb -h db -U postgres dump`.
20
19
-**Regenerate API types** of the frontend with `pnpm --filter @quassel/frontend run build:types`.
21
20
-**Run db tasks** by using `pnpm --filter @quassel/backend run db`.
22
21
**Create a new migration** with `pnpm --filter @quassel/backend run db migration:create`.
@@ -26,3 +25,11 @@ After running `pnpm dev` the following services should come up:
26
25
-**Run nest tasks** by using `pnpm --filter @quassel/backend run nest`.
27
26
-**Generate services** with e. g. `pnpm --filter @quassel/backend run nest g s participants research`.
28
27
-**Generate controllers** with e. g. `pnpm --filter @quassel/backend run nest g co languages defaults`.
28
+
29
+
### Work with a database dump
30
+
31
+
1. Retrieve a database dump
32
+
1. Create a separate database to import the dump with `createdb -h db -U postgres dump`
33
+
1. Load the dump into the database with `psql -h db -U postgres -d dump -f db_backup_2025-10-05_22-00-01.sql`
34
+
1. Start the application pointing to the `dump` database with `DATABASE_NAME=dump pnpm dev`
35
+
1. Clean up the database with `dropdb -h db -U postgres dump`
0 commit comments