@alevnyacow/nzmt 0.16.6 → 0.16.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Assuming you have a Next.js project with a generated Prisma client, and configur
|
|
|
23
23
|
|
|
24
24
|
## Setup phase
|
|
25
25
|
|
|
26
|
-
1. Install NZMT
|
|
26
|
+
1. Install NZMT with peer dependencies:
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
29
|
npm i inversify zod reflect-metadata @alevnyacow/nzmt
|
|
@@ -55,7 +55,7 @@ This command generates:
|
|
|
55
55
|
|
|
56
56
|
4. Import and set up there the necessary Prisma adapter in `/server/infrastructure/prisma/client.ts`
|
|
57
57
|
|
|
58
|
-
## Example 1. CRUD for `User` entity with
|
|
58
|
+
## Example 1. CRUD for `User` entity with React queries and Server Actions
|
|
59
59
|
|
|
60
60
|
Assuming you have `User` prisma schema.
|
|
61
61
|
|
|
@@ -76,7 +76,7 @@ This command generates:
|
|
|
76
76
|
|
|
77
77
|
Everything is wired automatically via DI — no manual setup needed.
|
|
78
78
|
|
|
79
|
-
2. Describe your entity in scaffolded `/shared/entities/user/user.entity.ts` (static `schema` field)
|
|
79
|
+
2. Describe your entity in scaffolded `/shared/entities/user/user.entity.ts` (static `schema` field).
|
|
80
80
|
|
|
81
81
|
3. Tweak `UserStore` schemas if needed in scaffolded `/server/stores/users/user.store.ts`.
|
|
82
82
|
|