-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINFO.txt
48 lines (32 loc) · 899 Bytes
/
INFO.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#### Install Cli ###
npm install -g @nestjs/cli
#### Create Project ###
nest new nestjs-restapi
#### Start Production Application ####
nest start
#### Start Dev Application ####
npm run start:dev
#### Run Docker Compose ####
docker compose up dev-db -d
#### Install Prisma CLI ####
npm install prisma --save-dev
#### Install Prisma Client ####
npm install @prisma/client
#### Initilize Prisma ####
npx prisma init
#### Generate Dev Prisma Schema ####
npx prisma migrate dev
#### Run Prisma Studio ####
npx prisma studio
#### Run Prisma Studio with Test ENV ####
npx cross-env dotenv -e .env.test prisma studio
#### Generate a Module ####
nest g module prisma
#### Generate a Module ####
nest g controller prisma
#### Generate a Servce ####
nest g service prisma
#### Remove Dev DB ####
docker compose rm dev-db -s -f -v
#### Re Deploy the DB Migration ####
npx prisma migrate deploy