A monorepo to prototype using Inversify. Inversify was used to develop the following applications:
App | Pipeline |
---|---|
Azure Function | |
Cloud Function | |
Express Web App | |
Lambda Function | |
Twilio Function |
As the repository consists of many packages some common/ core code and others as the releasable artefacts. A monorepo was used to reduce the complexity of sharing code between packages. Yarn workspaces is used to manage the monorepo.
The repository structure is as follows:
demo-typescript-inversify-app
+-- packages
+-- azure-function
+-- ...
+-- package.json
+-- cloud-function
+-- ...
+-- package.json
+-- core
+-- ...
+-- package.json
+-- lambda
+-- ...
+-- package.json
+-- twilio-function
+-- ...
+-- package.json
+-- web-app
+-- ...
+-- package.json
+-- ...
+-- package.json
For more information see the README of each of the packages
You will need:
Once you have Yarn 2 (Yarn Berry) installed, open a command prompt at the root of this project and run
yarn install
This will download all the dependencies for all packages and symlink all packages defined within the packages folder.