Skip to content

Commit d628797

Browse files
committed
update: 최소한의 모델만 남기고 삭제
1 parent e5e9366 commit d628797

23 files changed

+137
-623
lines changed

nest-cli.json

+16-14
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,22 @@
33
"collection": "@nestjs/schematics",
44
"sourceRoot": "src",
55
"compilerOptions": {
6+
"webpack": true,
67
"plugins": [
7-
"@nestjs/graphql"
8-
],
9-
"webpack": true
10-
},
11-
"projects": {
12-
"utils": {
13-
"type": "library",
14-
"root": "libs/utils",
15-
"entryFile": "index",
16-
"sourceRoot": "libs/utils/src",
17-
"compilerOptions": {
18-
"tsConfigPath": "libs/utils/tsconfig.lib.json"
8+
{
9+
"name": "@nestjs/graphql",
10+
"options": {
11+
"typeFileNameSuffix": [
12+
".input.ts",
13+
".args.ts",
14+
".entity.ts",
15+
".model.ts",
16+
".payload.ts"
17+
],
18+
"introspectComments": true
19+
}
1920
}
20-
}
21-
}
21+
]
22+
},
23+
"projects": {}
2224
}

package.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nestjs-graphql-prisma-template",
3-
"version": "0.1.1",
3+
"version": "0.2.0",
44
"description": "nestjs template with graphql and prisma",
55
"author": "daseul22",
66
"license": "ISC",
@@ -13,25 +13,29 @@
1313
"start:debug": "nest start --debug --watch",
1414
"start:prod": "node dist/main",
1515
"docker:up": "docker-compose -f docker-compose.local.yml up -d --force-recreate",
16-
"docker:down": "docker-compose down",
16+
"docker:down": "docker-compose -f docker-compose.local.yml down",
1717
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
1818
"test": "jest",
1919
"test:watch": "jest --watch",
2020
"test:cov": "jest --coverage",
2121
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
2222
"test:e2e": "jest --config ./test/jest-e2e.json"
2323
},
24+
"prisma": {
25+
"seed": "ts-node prisma/seed.ts"
26+
},
2427
"dependencies": {
2528
"@nestjs/apollo": "^10.0.16",
2629
"@nestjs/common": "^9.3.9",
30+
"@nestjs/config": "^2.3.1",
2731
"@nestjs/core": "^9.3.9",
2832
"@nestjs/graphql": "^10.0.16",
29-
"@nestjs/jwt": "^10.0.2",
3033
"@nestjs/platform-express": "^9.3.9",
34+
"@ntegral/nestjs-sentry": "^4.0.0",
3135
"@prisma/client": "^4.10.1",
36+
"@sentry/node": "^7.38.0",
3237
"@types/cors": "^2.8.12",
3338
"apollo-server-express": "^3.9.0",
34-
"axios": "^1.3.4",
3539
"class-transformer": "^0.5.1",
3640
"class-validator": "^0.14.0",
3741
"cookie-parser": "^1.4.6",

src/app.module.ts

+3-28
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,9 @@
1-
import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo'
21
import { Module } from '@nestjs/common'
3-
import { GraphQLModule } from '@nestjs/graphql'
4-
import { join } from 'path'
5-
import { UserModule } from './user/user.module'
2+
import { ThirdPartyModule } from './config/third-party.module'
63
import { PrismaModule } from './prisma/prisma.module'
7-
import { PostModule } from './post/post.module'
8-
import { AuthModule } from './auth/auth.module'
4+
import { UserModule } from './user/user.module'
95

106
@Module({
11-
imports: [
12-
GraphQLModule.forRoot<ApolloDriverConfig>({
13-
driver: ApolloDriver,
14-
debug: true,
15-
playground: false,
16-
autoSchemaFile: join(process.cwd(), 'src/schema.gql'),
17-
installSubscriptionHandlers: true, // webSocket allow
18-
context: ({ req, res, connection }) => {
19-
// guard에서 getContext하면 이 context를 가져오는거임
20-
return { req, res, connection }
21-
},
22-
buildSchemaOptions: {},
23-
cors: {
24-
origin: true,
25-
credentials: true
26-
}
27-
}),
28-
UserModule,
29-
PrismaModule,
30-
PostModule,
31-
AuthModule
32-
]
7+
imports: [ThirdPartyModule, PrismaModule, UserModule]
338
})
349
export class AppModule {}

src/auth/auth.controller.ts

-20
This file was deleted.

src/auth/auth.guard.ts

-59
This file was deleted.

src/auth/auth.module.ts

-22
This file was deleted.

src/auth/auth.resolver.ts

-45
This file was deleted.

src/auth/auth.service.ts

-75
This file was deleted.

0 commit comments

Comments
 (0)