loading...

Production-ready error handling with Express.js

sandorturanszky profile image SandorTuranszky ・1 min read

I am working on a more significant project, and here I decided to show you a part of it, namely the server side implementation with express.js where I implemented error handling, logging and some of the best practices.

The main idea is that it is not going to be just merely a boilerplate for express.js, but a well thought through production-ready solution implementing best practices so that one can use them from the very start.

The focus is on error handling at the moment, and there is a wiki page where I summarised how this project handles errors - Error handling wiki

There is a way to test how the project handles errors as described here

Here is the code

Happy to hear your feedback as I hope to improve it significantly based on your input. Thanks.

Discussion

markdown guide