HACKER Q&A
📣 topherPedersen

Does Anyone Use Node.js with Postgres?


Professional React-Native developer here with a backend question: Does anyone use Postgres with Node.js? For all of my personal projects I use Python/Flask/Postgres to build my backends. But I was thinking maybe I should just start writing everything in JavaScript/TypeScript. I really like using SQL databases so I didn't really want to switch over to using NoSQL databases like MongoDB. So I guess that's my question, is anyone using Postgres with Node.js? Does that combo make sense? (I know you can technically use any database with any language, but just wanted to hear what people think and listen to some input before I make any changes to my tech stack).


  👤 schmookeeg Accepted Answer ✓
It's my default.

It feels somewhat unfashionable lately, but I think that's because my primary clients are doing AWS Serverless. I'm a troglodyte with a colo'ed server and no personal stuff in the cloud. :)

My personal projects, though, remain node and pg. It's like a comfy pair of slippers, just works, well supported. Give it a whirl, the worst that happens is you hate it and try something else.


👤 defaultcompany
Yes with Prisma.

👤 mplanchard
Yes, with knex.js for a graphql server. Works well, no real surprises.

👤 neophyt3
Yes, knex.js + GCP managed postgresql