sejongbinary / binary-backend

Binary Backend Repository
1 stars 0 forks source link

๋กœ๊ทธ์ธ - app.module.ts #4

Open pgb0930 opened 2 months ago

pgb0930 commented 2 months ago

๐Ÿš… Issue ํ•œ ์ค„ ์š”์•ฝ

app.module.ts

๐Ÿคท Issue ์„ธ๋ถ€ ๋‚ด์šฉ

import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UsersModule } from './login/users.module';

@Module({
  imports: [
    TypeOrmModule.forRoot({
      type: 'postgres',
      host: 'localhost',
      port: 5432,
      username: 'postgres',
      password: 'postgres',
      database: 'Login',
      entities: [__dirname + '/**/*.entity{.ts,.js}'],
      synchronize: true,
    }),
    UsersModule,
  ],
})
export class AppModule {}

โœจ ๊ธฐ๋Œ€ ๊ฒฐ๊ณผ

๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท