Create the .env file in dbapp
cd dbapp
touch .env
Add these variables to your .env file
PORT=9000
DB_USER='postgres'
DB_PASSWORD='your-password'
DB_HOST='localhost'
DB_PORT=5432
DB_NAME='postgres'
node app.js
ExpressJS & node-postgres demo app
Create the .env file in dbapp
cd dbapp
touch .env
Add these variables to your .env file
PORT=9000
DB_USER='postgres'
DB_PASSWORD='your-password'
DB_HOST='localhost'
DB_PORT=5432
DB_NAME='postgres'
node app.js
ExpressJS & node-postgres demo app