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.
 
 
 
 
 
demo-graphql-oauth/src/bootstrap.ts

18 lines
466 B

require("dotenv").config()
import { ConnectionOptions } from "typeorm"
import { bootstrap } from "./app"
import { User } from "./app/userResolver/User"
let connectionOptions: ConnectionOptions = {
type: "postgres",
host: process.env.DB_HOST,
port: 5432,
database: process.env.DB_NAME,
username: process.env.DB_USER,
password: process.env.DB_PASS,
entities: [User],
synchronize: true,
logging: false,
}
bootstrap(connectionOptions, 4000)