08. How to connect express.js to Postgres database and send JSON response | Learn express.js

preview_player
Показать описание
#nodejs #expressjs #postgres #sql #postgresql

How to connect express app to postgres database

1. Install pg npm( npm install pg )

2. Create database in postgres

3. Create a connection pool

4. Query data from database using the connection pool
Рекомендации по теме
welcome to shbcf.ru