Getting started with bit 

Coupling microservices via common libraries is very bad. Bit promotes building components. We simply isolate and sync any reusable code and let bit handle how to isolate and track source code among the projects. This can still be installed with NPM and make changes from any end. Let's say you are making some great system with top-notch functionalities that are common everywhere. You want to share code among these services. You can follow along with the code inside the bit-code-sharing folder in Chapter 7Service State and Interservice Communication:

  1. Bit would be installed as a global module. Install bit by typing the following:
npm install bit-bin -g
  1. For this example, check out demo-microservice, which has common ...

Get TypeScript Microservices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.