@alevnyacow/nzmt 0.35.0 → 0.35.1
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 +7 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,13 +23,13 @@ https://stackblitz.com/edit/nzmt-playground
|
|
|
23
23
|
|
|
24
24
|
# What you get
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
Get production-ready backend + React Query hooks after one CLI command with NZMT. Install and initialize it, then run:
|
|
27
|
+
|
|
28
28
|
```bash
|
|
29
29
|
npx nzmt crud-api user
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
This will instantly scaffold:
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
35
|
server/
|
|
@@ -43,7 +43,9 @@ app/api/user/... # api routes
|
|
|
43
43
|
ui/shared/queries/user/... # react queries
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
Everything is already setup and ready-to-use after a few tweaks. See `Quick start with Prisma` section for more detailed information.
|
|
47
|
+
|
|
48
|
+
NZMT also comes with useful infrastructure like DI, logging, in-memory stores, unified errors, and endpoint guards. All code is editable, so you stay in full control. Full `crud-api` is only one of cases, you can scaffold entities, stores, services, controllers and infrastructure helpers on its own and combine them any way you want. List of all NZMT cli commands is provided in `CLI commands glossary` sections.
|
|
47
49
|
|
|
48
50
|
Fully wired flow:
|
|
49
51
|
```bash
|
|
@@ -158,7 +160,7 @@ export default async function Page() {
|
|
|
158
160
|
}
|
|
159
161
|
```
|
|
160
162
|
|
|
161
|
-
#
|
|
163
|
+
# CLI commands glossary
|
|
162
164
|
|
|
163
165
|
## Initialization
|
|
164
166
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alevnyacow/nzmt",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.1",
|
|
4
4
|
"description": "Next Zod Modules Toolkit",
|
|
5
5
|
"keywords": ["next", "full-stack", "server", "backend", "cli", "scaffolding", "zod", "rest", "contract programming", "contract-first", "react-query", "ddd", "domain-driven"],
|
|
6
6
|
"repository": {
|