Liferay provides many useful sample projects for those interested in learning best practices for Liferay DXP projects. You can learn more about these samples by visiting Sample Projects.
Rather than cloning the repository, you can generate these samples using Blade CLI for convenience.
List the available sample projects:
Note the sample project you want to generate; you’ll use it in the next step.
Run the following command to generate a sample project:
blade samples <NAME>
For example, to generate the portlet-ds sample, execute
blade samples ds-portlet
The sample is generated in the current folder.
Awesome! You’ve successfully generated a Liferay sample project using Blade CLI!