Created
October 4, 2022 11:28
-
-
Save Vivek205/9a55762627d02fb17c7555aaf3e853fa to your computer and use it in GitHub Desktop.
The root module of the application
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
import { Module } from '@nestjs/common'; | |
import { TypeOrmModule } from '@nestjs/typeorm'; | |
import { TasksModule } from './tasks/tasks.module'; | |
@Module({ | |
imports: [ | |
TasksModule, | |
TypeOrmModule.forRoot({ | |
type: 'postgres', | |
host: 'localhost', | |
port: 5432, | |
username: 'postgres', | |
password: 'postgres', | |
database: 'task-management', | |
autoLoadEntities: true, | |
synchronize: true, | |
}), | |
], | |
}) | |
export class AppModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment