Skip to content

Instantly share code, notes, and snippets.

@GhettoBurger996
Last active March 14, 2022 19:26
Show Gist options
  • Save GhettoBurger996/fc72299f6ed7f5358d012e33822350c4 to your computer and use it in GitHub Desktop.
Save GhettoBurger996/fc72299f6ed7f5358d012e33822350c4 to your computer and use it in GitHub Desktop.
ormconfig
/**
* Connection Configurations for TypeORM
* Used for creating, running and reverting Migrations
* And seeding data
*/
module.exports = {
type: 'postgres',
host: 'localhost',
port: 5432,
username: 'postgres',
password: 'postgres123',
database: 'ecommerce',
migrationsRun: true,
synchronize: false,
logging: true,
logger: 'advanced-console',
migrationsTableName: 'migrations',
migrations: ['migrations/*.ts'],
cli: {
migrationsDir: 'migrations',
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment