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: README.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Compatibility-first REST API for Tanzania location data backed by PostgreSQL and
12
12
13
13
## Requirements
14
14
15
-
- Node.js `>=20.19.0`
15
+
- Node.js `22.13.0+`
16
16
- pnpm `10.7.0+`
17
17
- PostgreSQL `16+` recommended
18
18
@@ -30,7 +30,11 @@ Compatibility-first REST API for Tanzania location data backed by PostgreSQL and
30
30
cp .env.example .env
31
31
```
32
32
33
-
3. Start PostgreSQL and update `DATABASE_URL` if needed.
33
+
3. Start PostgreSQL and update your connection strings if needed.
34
+
35
+
- Local and test environments use a direct PostgreSQL `DATABASE_URL`.
36
+
- Production uses a Prisma Accelerate `DATABASE_URL`.
37
+
- If you run `pnpm db:migrate` against an Accelerate-backed environment, also provide `DIRECT_DATABASE_URL` so the migration bootstrap can talk to Postgres directly.
34
38
35
39
4. Apply the checked-in schema and seed deterministic fixture data.
36
40
@@ -66,6 +70,7 @@ pnpm openapi:json
66
70
- On a fresh database it bootstraps the historical `init` migration, marks that baseline as applied, and then deploys later migrations
67
71
- On an existing database that already has the older Prisma migration history, it only applies the new additive migrations
68
72
- Prefer `pnpm db:migrate` over calling `prisma migrate deploy` directly
73
+
-`DATABASE_URL` may point at Prisma Accelerate in production, but `pnpm db:migrate` still requires a direct Postgres URL in `DIRECT_DATABASE_URL`
69
74
70
75
## Testing
71
76
@@ -146,7 +151,7 @@ Additional filters:
146
151
## Dependency Automation
147
152
148
153
-`.github/dependabot.yml` opens weekly update PRs for npm packages and GitHub Actions
149
-
-`.github/workflows/ci.yml` validates every PR against Postgres on Node `20.19.0` and `22`
154
+
-`.github/workflows/ci.yml` validates every PR against Postgres on Node `22.13.0`
0 commit comments