-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
각 애플리케이션 마다 모듈화를 진행했습니다. 모듈화 하는 이유는 애플리케이션이 한 가지 일만 수행하도록 여러 컴포넌트를 조합하여 더 큰 작업을 수행 할 수 있습니다
- Loading branch information
Showing
7 changed files
with
76 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
import { Module } from '@nestjs/common' | ||
import { DatabaseModule } from '../config/database/database.module' | ||
import { MemberModule } from '../members/member.module' | ||
import { SignupController } from './signup/web/signup.controller' | ||
import { SignupService } from './signup/application/signup.service' | ||
import { JwtProvider } from '../jwt/jwt.provider' | ||
import { SigninController } from './signin/web/signin.controller' | ||
import { SigninService } from './signin/application/signin.service' | ||
import { TokenController } from './token/web/token.controller' | ||
import { TokenIssuer } from './token/application/token.issuer' | ||
import { SignoutService } from './signout/application/signout.service' | ||
import { SignoutController } from './signout/web/signout.controller' | ||
import { SigninModule } from './signin/signin.module' | ||
import { SignoutModule } from './signout/signout.module' | ||
import { SignupModule } from './signup/signup.module' | ||
|
||
@Module({ | ||
imports: [DatabaseModule, MemberModule], | ||
controllers: [SignupController, SigninController, TokenController, SignoutController], | ||
providers: [SignupService, SigninService, JwtProvider, TokenIssuer, SignoutService], | ||
imports: [SigninModule, SignoutModule, SignupModule], | ||
}) | ||
export class AuthModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Module } from '@nestjs/common' | ||
import { SigninService } from './application/signin.service' | ||
import { SigninController } from './web/signin.controller' | ||
import { DatabaseModule } from '../../config/database/database.module' | ||
import { MemberModule } from '../../members/member.module' | ||
import { JwtModule } from '../../jwt/jwt.module' | ||
import { TokenModule } from '../token/token.module' | ||
|
||
@Module({ | ||
imports: [DatabaseModule, MemberModule, JwtModule, TokenModule], | ||
controllers: [SigninController], | ||
providers: [SigninService], | ||
exports: [SigninService], | ||
}) | ||
export class SigninModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Module } from '@nestjs/common' | ||
import { DatabaseModule } from '../../config/database/database.module' | ||
import { MemberModule } from '../../members/member.module' | ||
import { JwtModule } from '../../jwt/jwt.module' | ||
import { SignoutService } from './application/signout.service' | ||
import { SignoutController } from './web/signout.controller' | ||
import { TokenModule } from '../token/token.module' | ||
|
||
@Module({ | ||
imports: [DatabaseModule, MemberModule, JwtModule, TokenModule], | ||
controllers: [SignoutController], | ||
providers: [SignoutService], | ||
exports: [SignoutService], | ||
}) | ||
export class SignoutModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Module } from '@nestjs/common' | ||
import { DatabaseModule } from '../../config/database/database.module' | ||
import { MemberModule } from '../../members/member.module' | ||
import { JwtModule } from '../../jwt/jwt.module' | ||
import { SignupService } from './application/signup.service' | ||
import { SignupController } from './web/signup.controller' | ||
|
||
@Module({ | ||
imports: [DatabaseModule, MemberModule, JwtModule], | ||
controllers: [SignupController], | ||
providers: [SignupService], | ||
exports: [SignupService], | ||
}) | ||
export class SignupModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Module } from '@nestjs/common' | ||
import { DatabaseModule } from '../../config/database/database.module' | ||
import { TokenController } from './web/token.controller' | ||
import { TokenIssuer } from './application/token.issuer' | ||
import { MemberModule } from '../../members/member.module' | ||
import { JwtModule } from '../../jwt/jwt.module' | ||
|
||
@Module({ | ||
imports: [DatabaseModule, MemberModule, JwtModule], | ||
controllers: [TokenController], | ||
providers: [TokenIssuer], | ||
exports: [TokenIssuer], | ||
}) | ||
export class TokenModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Module } from '@nestjs/common' | ||
import { DatabaseModule } from '../config/database/database.module' | ||
import { JwtProvider } from '../jwt/jwt.provider' | ||
|
||
@Module({ | ||
imports: [DatabaseModule], | ||
providers: [JwtProvider], | ||
exports: [JwtProvider], | ||
}) | ||
export class JwtModule {} |