This repository is template used to create Express APIs with TypeScript.
Properly defined and type checked server config that can be configured using nconf in TypeScript or via environment variables.
A powerful logger based on bunyan that is customizable using the server config.
This server includes a controller that catches every request made to unknown endpoints and returns a custom 404 response message.
Simple controller used to ping the server.
A middleware that catches errors thrown in the controllers and returns a custom 500 error response message.
A middleware that logs incoming requests.
A middleware that validates incoming requests params using custom defined validators and express-validator.
A wrapper function that can be used to wrap async controller handlers in order to properly catch errors thrown in them.
Integration tests that run on your real app using supertest.