I recently finished learning JavaScript and Express, but I'm stuck on what to learn next. I want to understand relational databases, learn how to use PostgreSQL in practice, and eventually become a stronger backend developer. What's the best way to learn PostgreSQL, which resources would you recommend, and how can I start using it in my existing Express projects? I've already built a backend project with Express and would also appreciate general feedback on its code quality, file structure, and organization.
3 Answers
You don’t need to wait until you’ve completed a full PostgreSQL course. Take the Express project you already built, identify where data is stored in variables or files, and migrate one feature at a time. Start with a table, connect with node-postgres, and write the queries directly in your route logic while you’re learning. Later, you can improve the structure by separating routes, controllers, database queries, validation, and error handling. A simple todo app is also a good practice project for this process.
Start with the fundamentals of relational databases and SQL, then learn the PostgreSQL-specific tools and features. There are plenty of beginner SQL tutorials available, and the core syntax hasn’t changed dramatically. Focus on tables, relationships, primary and foreign keys, joins, filtering, grouping, and basic database design before worrying about advanced PostgreSQL features.
The most practical approach is to replace the in-memory arrays or JSON data in one of your existing Express projects with PostgreSQL. Install the node-postgres package, connect your application to a database, and begin with simple raw SQL queries such as SELECT and INSERT. Once those work, add UPDATE and DELETE operations for the rest of your endpoints. You’ll learn much faster by applying each database concept to an application you already understand.
That makes sense. I had assumed I needed to use a separate database interface first, but I can run SQL from my Express application. I’ll try storing user-entered course data in PostgreSQL and replace the array-based endpoints in my practice projects.

I already learned JavaScript before Express, and I’d like to learn both the general database concepts and how to work with PostgreSQL specifically. I’ll start with the SQL fundamentals and use a beginner tutorial as a reference.