Connect Node to Postgres

Published: 17 April 2023
on channel: WittCode
19,733
301

👨🏻‍💻 I made DevPayHub for solo devs. Payments & users handled.
https://devpayhub.com

Learn how to connect a Node application to a postgres database using the node-postgres or pg npm library, what connection pooling is, the pg npm library, and managing environment variables with dotenv.

📚 My Courses
https://www.udemy.com/user/wittcode/
💻 My Software
https://chromewebstore.google.com/sea...
👨‍💻 Download Code
https://wittcode.com

⌛ Timestamps
0:00 – Introduction
0:09 – Creating a Node Project
0:43 – Downloading node-postgres or pg
1:10 – pg Client vs Pool
2:04 – Environment Variables and dotenv
4:33 – Connecting to Postgres with pg Pool
5:09 – Querying Postgres with pg Pool
7:05 – Debugging
7:41 – Pool vs Client
8:22 – Outro


On this page of the site you can watch the video online Connect Node to Postgres with a duration of hours minute second in good quality, which was uploaded by the user WittCode 17 April 2023, share the link with friends and acquaintances, this video has already been watched 19,733 times on youtube and it was liked by 301 viewers. Enjoy your viewing!