O'Reilly logo

TypeScript Microservices by Parth Ghiya

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Bottom-up approach

Wow! After going through a top-down approach, it seems like the perfect plan. But what about when we have already developed the project and now we want to generate our documentation. We are left in a conundrum. What should we do? Luckily, we have just the solution. We will leverage swagger-ui-express (https://www.npmjs.com/package/swagger-ui-express) to generate the documentation. It has more than 45,000 downloads a week. It is a community-driven package that enables a middleware for your express application, which serves the Swagger UI based on the Swagger documentation file. We will need to add one route, which will host the Swagger UI. Documentation is good and everything is there—whatever we need. So, let's get started. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required