Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

nestjs pg heroku

import { ConfigModule } from '@nestjs/config';

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';

@Module({
  imports: [
    UsersModule,
    ConfigModule.forRoot(),
    TypeOrmModule.forRoot({
      url: process.env.DATABASE_URL,
      type: 'postgres',
      ssl: {
        rejectUnauthorized: false,
      },
      entities: ['dist/**/*.entity{.ts,.js}'],
      synchronize: true, // This for development
      autoLoadEntities: true,
    }),
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
Comment

PREVIOUS NEXT
Code Example
Javascript :: regex match but ignore part 
Javascript :: get image height Jimp nodejs 
Javascript :: FTP upload local file 
Javascript :: Setting, getting, and removing data attributes vanilla javascript 
Javascript :: how to search table using jquery 
Javascript :: assignment of struct in solidity 
Javascript :: jquery code to javascript converter 
Javascript :: Creates an Express application 
Javascript :: get day in google app script 
Javascript :: angular show text in template before data loads 
Javascript :: list-react-files 
Javascript :: how to cookie set in node js 
Javascript :: modify a string in javascript 
Javascript :: self or this javascript 
Javascript :: how to make image slider in react js 
Javascript :: javascript replace url on sentence as achor 
Javascript :: data-sap-ui-component-preload-xxx 
Javascript :: parentsuntil without jquery 
Javascript :: downlaod file from website raect2 
Javascript :: Finding the longest word in a string 
Javascript :: detect escape characters js 
Javascript :: 9.4.1.2. Loop Condition¶ 
Javascript :: How to change color of an icon, text or other component with ReactNative useState Hook 
Javascript :: leaftjs 
Javascript :: javascript returns odd 
Javascript :: battery status check on user machine 
Javascript :: Using Intl.NumberFormat() to Print JavaScript Number Format with Commas 
Javascript :: Enable Cookies and JavaScript in Internet Explorer 9.0 
Javascript :: unique elements 
Javascript :: cookie parser object null prototype 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =