Create a feature module

The fastest way to create a new feature module that works with OneCX you can use the OneCX generator. Some projects have their own generator based on the OneCX generator. It should be clarified before starting if this is the case for the project the app is generated for.

To run the generator, execute the following command:

nx generate <namespaceOfTheGenerator>/nx-plugin:feature <nameOfTheFeature> [--standalone]
  • <namespaceOfTheGenerator>: For the OneCX generator, use @onecx. For a project specific generator, ask for the namespace of the generators.

  • <nameOfTheFeature>: The name of the feature to create e.g., theme.

Options:

  • --standalone: if you want to develop an application that does not depend on onecx-services.

After running the generator, the following actions must be taken: