Using a PostgreSQL Database with a NodeJS Backend. You can read my article to know the step by step process to use the Postgres.JS Library to connect with a PostgreSQL Database. Running the Server Follow the steps in the article to setup your database using Docker. Run npm run start to start the server.