This repo contains an article and example code on the topic
Please, I will be delighted :) link
All of the code sits in src
directory
Add connection string to the .env
like DATABASE_URL=<connection string>
in the root directory. You can use Neon or docker for a quick postgres setup.
yarn && yarn migrate && yarn start
curl https://localhost:3000/users
yarn test