This repository includes a powerful CLI tool built in Rust that automatically generates realistic mock data for Liferay using the Gemini AI API. It creates 20 Basic Web Content articles, populates them with unique AI-generated titles, descriptions, and body paragraphs, and injects open-source placeholder images.
The tool uses Liferay's Headless Delivery REST APIs to push the content directly into your chosen Site, completely bypassing the need for complex .lar file imports or Groovy scripts.
- Rust and Cargo: Ensure you have the latest stable version of Rust installed.
- Gemini API Key: You will need a free API key from Google AI Studio.
- Liferay DXP/CE: A running instance of Liferay 7.3+ (requires the Headless Delivery APIs).
Compile the application for release to ensure maximum performance:
cargo build --release