In this article, we will go through the setup to get you started with expressJs with typescript. We also go into the details on what are the controllers, middleware, services, routes, etc.
Let’s get started!
This command will ask you for some input. Respond as you like (it’s not relevant for this guide).
npm i express express-winston winston debug cors — save
npm i @types/cors @types/debug @types/express @types/node nodemon source-map-support tslint typescript --save-dev