Guest User

Untitled

a guest
Jan 31st, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. "use strict";
  2.  
  3. import { Pool } from 'pg';
  4. import config from './../config';
  5.  
  6. export default new Pool(
  7. config.db.database,
  8. config.db.user,
  9. config.db.password,
  10. config.db.details
  11. );
  12.  
  13. 'use strict';
  14.  
  15. export default config;
  16.  
  17. config.db = {
  18. user: 'postgres',
  19. password: '047',
  20. database: 'Users',
  21. };
  22.  
  23. config.db.details = {
  24. host: '127.0.0.1',
  25. port: 5432,
  26. dialect: 'postgres'
  27. };
  28.  
  29. config.keys = {
  30. secret: '/jVdf='
  31. };
Add Comment
Please, Sign In to add comment