Start from your users API
Start from the finished project from Build a REST API from nothing: a users-api folder with Express installed, server.js, and the user routes in routes/users.js.
If you don't have it any more, run the commands below and copy in the two files.
WHY
Right now routes/users.js keeps users in an array, so every restart empties it. The rest of this build swaps that array for a Postgres table without changing what the API looks like from outside.