Have a Database User for each Express Route - Best Practices for Backend Application with Postgres.
This is a question from one of you guys that I thought I’d answer in its own video since its loaded.
Q/A - Shark Beak
I currently have the same setup for my side project. What do you think about having a ‘create table if not exist’ running on startup that creates this table? Good/bad?
It is always a good idea to have a specific database user for each route with specific permissions and use connection pooling as much as possible.
#express #postgres #programming