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

Synopsis

In this section, we will have a quick look at some of the modules that we used and describe their purpose:

routing-controllers

Has various options and is based on ES6. It has lots of decorators, such as @GET, @POST, and @PUT, which help us to design configuration-free services.

config

Config module from which we can write various files based on different environments, thus helping us to adhere to the twelve-factor app.

typedi

Used as a dependency injection container. We can then use it to inject services (@Service) into any controller.

winston

Used for the logging module.

typeORM

Module written in TypeScript for dealing with relational databases.

mongoose

Popular Mongoose ORM module for dealing ...

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