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