Best practices for creating a site hierarchy from data?
I'm running AEM 6.5 at Adobe Managed Services. I need to build a new site, based on data from an existing database-driven site. I'm looking for the current best practice for importing data and creating a page hierarchy from it.
The site lets users search for items, and the detail pages for those items sit at the bottom of a category hierarchy. I want to create intermediate pages for the hierarchy, and item pages for the leaf nodes. I can export the item and hierarchy data from the database to delimited files.
I'm quite comfortable in the Groovy console, and my first thought was to use it to process the data and create corresponding nodes in the JCR for it, specifying the appropriate page templates and components. But I'm wondering if there are any other tools in common use to do this sort of thing? What's the best way to do this in 2023?