nestjs-prisma-cli 1.0.9 → 1.0.10
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 +17 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@ A CLI tool to quickly scaffold a **NestJS + Prisma** project with built-in suppo
|
|
|
14
14
|
- 📖 Swagger (OpenAPI) setup
|
|
15
15
|
- 🔑 Authentication boilerplate
|
|
16
16
|
- ☁️ AWS S3 integration
|
|
17
|
+
- 📜 Logging via Winston (rotating logs and DB persistence)
|
|
17
18
|
|
|
18
19
|
Compatible with **Node.js >=18** and **NestJS v10+**.
|
|
19
20
|
|
|
@@ -31,19 +32,20 @@ Once the CLI is installed, you can use the following commands:
|
|
|
31
32
|
npm install -g nestjs-prisma-cli
|
|
32
33
|
```
|
|
33
34
|
|
|
34
|
-
|
|
35
35
|
### 2️⃣ Check CLI version
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
38
|
nestgen -v
|
|
39
39
|
```
|
|
40
|
+
|
|
40
41
|
# or
|
|
42
|
+
|
|
41
43
|
```bash
|
|
42
44
|
nestgen --version
|
|
43
45
|
```
|
|
44
46
|
|
|
45
|
-
|
|
46
47
|
### 3️⃣ Generate a new project
|
|
48
|
+
|
|
47
49
|
```bash
|
|
48
50
|
nestgen
|
|
49
51
|
```
|
|
@@ -61,31 +63,43 @@ Step 3: 🎉 Project ready! Next steps:
|
|
|
61
63
|
```
|
|
62
64
|
|
|
63
65
|
### Navigate into your project
|
|
66
|
+
|
|
64
67
|
```bash
|
|
65
68
|
cd my-app
|
|
66
69
|
```
|
|
70
|
+
|
|
67
71
|
### Update .env
|
|
72
|
+
|
|
68
73
|
```bash
|
|
69
74
|
DATABASE_URL="your_database_connection_string"
|
|
70
75
|
```
|
|
76
|
+
|
|
71
77
|
```bash
|
|
72
78
|
npx prisma generate
|
|
73
79
|
```
|
|
80
|
+
|
|
74
81
|
### SQL Databases
|
|
82
|
+
|
|
75
83
|
### (PostgreSQL, MySQL, SQLite, CockroachDB, SQLServer)
|
|
84
|
+
|
|
76
85
|
```bash
|
|
77
86
|
npx prisma migrate dev --name init
|
|
78
87
|
```
|
|
88
|
+
|
|
79
89
|
### NoSQL Database
|
|
90
|
+
|
|
80
91
|
### (MongoDB)
|
|
92
|
+
|
|
81
93
|
```bash
|
|
82
94
|
npx prisma db push
|
|
83
95
|
```
|
|
96
|
+
|
|
84
97
|
### Then, follow this
|
|
98
|
+
|
|
85
99
|
```bash
|
|
86
100
|
npx ts-node prisma/seed.ts
|
|
87
101
|
```
|
|
102
|
+
|
|
88
103
|
```bash
|
|
89
104
|
npm run start:dev
|
|
90
105
|
```
|
|
91
|
-
|