DEV Community

Sandor | tutorialhell.dev
Sandor | tutorialhell.dev

Posted on

1 1

Production-ready error handling with Express.js

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.

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay