Coding task · NestJS course · Module 3: TypeORM and Databases

Database connection configuration

Configure TypeORM to connect to a PostgreSQL database.

Task

Write a TypeOrmModule.forRoot() configuration with type: 'postgres', host, port, username, password and database