Skip to main content

Generators

Nest App Generator

nx g @tsm/nx-tools:nest-app-generator <app-name>

This workspace generator will:

  • Create a new app in apps/<app-name> with:
    • A skeleton OpenAPI integration
    • TypeORM with DomainEvents and migrations configured
    • TypeORM npm command nx typeorm:<app-name>
    • Environment variable configuration
  • Create a new type-library called libs/shared/types-<app-name> with:
    • An example Request and Response implementation
  • Setup the eslint and tsconfigs to be PascalCase projects

The final step you will need to take is to update the docker-compose.yaml config with a new container for your app.