renaming and docs
This commit is contained in:
parent
b1b714f44e
commit
7e831cfb64
14 changed files with 86 additions and 32 deletions
|
|
@ -11,9 +11,16 @@ const __dirname = dirname(__filename);
|
|||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* Load config
|
||||
*/
|
||||
const { DB_HOST, DB_PORT, DB_USERNAME, DB_PASSWORD, DB_DATABASE, NODE_ENV } =
|
||||
process.env;
|
||||
|
||||
/**
|
||||
* Configures data source
|
||||
*/
|
||||
|
||||
export const AppDataSource = new DataSource({
|
||||
type: "postgres",
|
||||
host: DB_HOST,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue