@alevnyacow/nzmt 0.13.1 → 0.13.2

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.
Files changed (2) hide show
  1. package/README.md +3 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -36,7 +36,6 @@ npm install inversify zod reflect-metadata @alevnyacow/nzmt
36
36
 
37
37
  2. Enable `Experimental decorators` and `Emit Decorator Metadata` options in your `tsconfig.json`.
38
38
  ```json
39
- // tsconfig.json
40
39
  {
41
40
  "compilerOptions": {
42
41
  "experimentalDecorators": true,
@@ -45,7 +44,7 @@ npm install inversify zod reflect-metadata @alevnyacow/nzmt
45
44
  }
46
45
  ```
47
46
 
48
- 3. Initialize NZMT. This will set up all required infrastructure and configuration for you:
47
+ 3. Initialize NZMT (must be done once). This will set up all required infrastructure and configuration for you:
49
48
  ```bash
50
49
  npx nzmt init prismaClientPath:@/app/generated/prisma/client
51
50
  ```
@@ -58,7 +57,7 @@ npx nzmt crud-api user
58
57
  This will generate:
59
58
 
60
59
  - `User` entity
61
- - `UserStore` contract, `UserRAMStore` and `UserPrismaStore` implementation
60
+ - `UserStore` contract, `UserRAMStore` and `UserPrismaStore` implementations
62
61
  - `UserService` proxying all `UserStore` methods
63
62
  - `UserController` proxying all `UserService` methods.
64
63
 
@@ -67,7 +66,7 @@ All code is editable - you stay in full control.
67
66
  5. **Describe entity properties and validation rules using Zod** for the `User` entity in the scaffolded file `/shared/entities/user/user.entity.ts`.
68
67
 
69
68
  6. **Implement Prisma mappers** in `/server/stores/user/user.store.prisma.ts`.
70
- All methods and contracts are already scaffolded; you only need to describe the mappers themselves.
69
+ All methods and contracts are already scaffolded; you only need to describe the mappers themselves. RAM store implementation works out of the box.
71
70
 
72
71
  7. Use generated controller in `app/api/user/route.ts` file via DI.
73
72
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alevnyacow/nzmt",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "Next Zod Modules Toolkit",
5
5
  "repository": {
6
6
  "type": "git",