Drupal CMS is a fast-moving open source product that enables site builders to easily create new Drupal sites and extend them with smart defaults, all using their browser.
If you want to use DDEV to run Drupal CMS locally, follow these instructions:
- Install DDEV following the documentation
- Open the command line and
cdto the root directory of this project - Run the following commands:
ddev start
ddev composer install
ddev composer drupal:recipe-unpack
ddev launchDrupal CMS has the same system requirements as Drupal core, so you can use your preferred setup to run it locally. See the Drupal User Guide for more information on how to set up Drupal.
In this project a proof-of-concept (POC) for content migration into Drupal using the Migrate API and the migrate_plus module is performed.
ddev start
ddev composer install
ddev composer drupal:recipe-unpack
ddev launch- Edit the
system.siterecord in the database config table and update the UUID. ddev drush cset system.site uuid "$(cat config/sync/system.site.yml | grep uuid | awk '{print $2}')"
ddev drush entity:delete shortcut_set
ddev drush cimddev drush migrate:statusddev drush migrate:import custom_feeds_migration
A custom migration was set up to import news posts from the NDTV RSS feed (XML format) into Drupal nodes of type news. The migration uses the following configuration:
- Source: NDTV RSS feed (http://feeds.feedburner.com/ndtvnews-top-stories.xml)
- Source Plugin:
urlwithhttpdata fetcher andsimple_xmlparser - Fields Mapped: guid, title, publication date, link, summary, image URL
- Image Handling: Downloads images and attaches them to the node
- Date Handling: Converts publication date to Unix timestamp
- Destination: Drupal nodes (content type: news)
The migration configuration is defined in migrate_plus.migration.custom_feeds_migration.yml.