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.
19 lines
466 B
19 lines
466 B
5 years ago
|
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)
|