import {Client} from 'pg'; import dotenv from 'dotenv'; dotenv.config(); export const client = new Client({ database: process.env.DB_NAME, user: process.env.DB_USERNAME, password: process.env.DB_PASSWORD }); client.connect(); /--------.env file ------------/ DB_NAME=memo-wall DB_USERNAME=gordon DB_PASSWORD=gordon
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter