This repository contains the Liferay Course Objects materials.
The main branch is the starting point for the course, and the other branches have the results from the end of the module exercises.
- Bundle Preparation
- Starting and Stopping the Bundle
- Exercise 01: Adding Data Models for Clarity's Distributor Solution
To prepare your local Liferay bundle, you need to use the Blade CLI tool. The Blade CLI provides a convenient way to manage Liferay projects and bundles. Follow the steps below to set up your local environment:
-
Ensure Blade CLI is Installed: Make sure you have the Blade CLI installed on your system. If not, you can download it from the Liferay Blade CLI GitHub page.
-
Navigate to Your Project Directory: Open a terminal and navigate to the root directory from the cloned repository.
-
Run the Initialization Command: Execute the following command to initialize your local Liferay bundle:
blade gw initBundle
This command will prepare the Liferay bundle and make it available in the
bundles
directory of your project. -
Verify the Bundle: Once the command completes, check the
bundles
directory to ensure that the Liferay bundle has been set up correctly.
By following these steps, you will have a local Liferay bundle ready for development and testing purposes. This setup is essential for running and deploying your Liferay modules effectively.
Once you have prepared your Liferay bundle, you can start and stop it using the Blade CLI tool. Follow the steps below to manage your bundle:
-
Start the Bundle: To start your Liferay bundle, execute the following command in your terminal:
blade server start
This command will start the Liferay server, making it accessible for development and testing.
-
Access the Environment: After starting the bundle, open a web browser and navigate to http://localhost:8080. Use the following credentials to log in:
- Username: admin@clarityvisionsolutions.com
- Password: learn
This will give you access to the Liferay environment where you can deploy and test your modules.
-
Stop the Bundle: When you are done working with the Liferay bundle, you can stop the server by executing the following command:
blade server stop
This command will stop the Liferay server, freeing up system resources.
By following these steps, you can effectively manage the lifecycle of your Liferay bundle, ensuring a smooth development and testing process.
In this exercise, you will learn how to add data models to enhance the clarity of the distributor solution. This involves creating and configuring the necessary data structures to support the application's functionality. Follow the steps outlined in the course materials to complete this exercise successfully.
The solution for this exercise is under the exercise-01
branch.