diff --git a/README.md b/README.md index da03a6a1..11508899 100644 --- a/README.md +++ b/README.md @@ -4,16 +4,20 @@ ✨ **This workspace has been generated by [Nx, a Smart, fast and extensible build system.](https://nx.dev)** ✨ - ## Start the app To start the development server run `nx serve datahub`. Open your browser and navigate to http://localhost:4200/. Happy coding! - ## Generate code If you happen to use Nx plugins, you can leverage code generators that might come with it. +To generate a component from the root dir for instance, run the following command: + +``` +npx nx g @nx/angular:component [my-component] --module=app.module --directory=apps/datahub/src/app/[my-component-location] +``` + Run `nx list` to get a list of available plugins and whether they have generators. Then run `nx list ` to see what generators are available. Learn more about [Nx generators on the docs](https://nx.dev/plugin-features/use-code-generators).