You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NestJS_Basic/nest-user-api/src/app.module.ts

25 lines
668 B

2 months ago
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { UsersModule } from './users/users.module';
1 month ago
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from './users/user.entity';
2 months ago
@Module({
1 month ago
imports: [
TypeOrmModule.forRoot({
type: 'mysql',
host: 'localhost',
port: 3306,
username: 'root',
password: 'init00!!',
database: 'test_db',
1 month ago
entities: ['src/**/*.entity.ts'],
// synchronize: true //개발용
1 month ago
}),
UsersModule],
2 months ago
controllers: [AppController],
providers: [AppService],
})
export class AppModule {}