Three days ago I started a short tutorial on how to write a test-driven Node.js web API with PostgreSQL database.
The excellent blog post is from 2016, but it’s still useful.
I used Docker to build the application. If you want to see the example application as a dockerized Node.js/Express.js program, you can take a look at my GitLab repository.
The repository also uses GitLab CI to build the container and run the tests with Mocha.
- Test Driven Development with Node, Postgres, and Knex (Red/Green/Refactor) by Michael Herman
- GitLab Docker application by Sophia Brandt