Book Image

Drupal 8 Development: Beginner's Guide - Second Edition

By : Neeraj Kumar, Tassos Koutlas, Samuel Keen, Edward Crompton, Krishna Kanth, Rakesh James, Malabya Tewari, Kurt Madel
Book Image

Drupal 8 Development: Beginner's Guide - Second Edition

By: Neeraj Kumar, Tassos Koutlas, Samuel Keen, Edward Crompton, Krishna Kanth, Rakesh James, Malabya Tewari, Kurt Madel

Overview of this book

<p>Drupal is one of the most popular platforms with which to develop websites. With more and more organizations looking to build engaging digital experience for their stakeholders, the Drupal Content Management System offers a mobile-first platform with native support for integrations, better performance, and scalability. The new version brings significant changes to its module development and theme creation techniques, improving performance and refining the development experience.</p> <p>This book will help you develop your own website using Drupal 8 in a step-by-step manner. You’ll start off by setting up your development environment, enabling you to begin writing custom code for a Drupal-powered website through PHPStorm. You will learn about configuration management and creating custom content types before exploring the HTML5 features included with Drupal 8.</p> <p>You will then get familiar with Drupal 8’s mobile-first features, explore the built-in WYSIWYG and in-line editing capabilities of Drupal 8, and enhance the overall authoring experience. Later, you will create and enhance a Media Entity Lightbox module, before taking an in-depth look at the Views module.</p> <p>We then cover some advanced search concepts and walk you through the installation and integration of the Java-based Apache Solr search engine. Finally, you will explore and configure the built-in support for REST and extend its support by installing the RESTful module. By the end of the book, you will have created a recipe sharing website while gaining a solid understanding of development best practices for Drupal 8.</p>
Table of Contents (20 chapters)
Drupal 8 Development Beginner's Guide Second Edition
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Time for action – installing Drupal using Acquia Dev Desktop


If you are using Mac or Windows, Acquia Dev Desktop is the easiest method to develop Drupal:

  1. Visit https://www.acquia.com/downloads and download the installer you need.

  2. Open the Acquia Dev Desktop file and start the installation process. If you are a Windows user, find the folder that you used to save your Acquia Dev Desktop download and double-click on the .exe installation file.

  3. If you are a Mac user, find the folder that you used to save your Acquia Dev Desktop download. Move the file to the Application folder and double-click on the .dmg installation file. A new folder will pop up, with an icon that says Acquia Dev Desktop Stack Installer. Go ahead and click on that. Allow the installer to run on your Mac or PC.

  4. Let the installer run and click on Next for every step once you have read and agreed to the terms and conditions. Next, you can select where you are going to install the application stack (Apache, MySQL, and PHP) and where you are going to install your first Drupal site.

  5. During this installation, we won't use our Drupal site directly but in other chapters, if you decide to use Dev Desktop for development work, you can import sites from other locations on your hard drive as well. Leave these at the default and click on Next. On the next page, you have to select the port number for Apache and MySQL. In most cases, it will work without any conflict, but if you are using multiple AMP stacks, you can go ahead and make the changes.

  6. On the next screen, we set the defaults for our first Drupal site. Fill this out and click on Next. Make sure you note down the username and password. You will need this to log in to your Drupal site.

    Creating credentials for the first Drupal site

  7. Click on Next to begin the installation process. Once the installation is complete, click on Finish, and this will open up the Acquia Dev Desktop Control Panel.

    Acquia Dev Desktop Control Panel

  8. Go to your new site by clicking on Go to my site. Use Manage my database to browse to PHPMyAdmin.

    Login page for setting up the site

What just happened?

You have installed Drupal using Acquia Dev Desktop. From here, you can begin working on your new Drupal site.

Note that the site is running using Acquia Drupal, which is little different in that you would download from your https://www.drupal.org/. Installing Acquia Dev Desktop on Windows is almost similar.

Installing Drupal the localhost way

Now we will go through installation steps of AMP packages for both Mac OS X and Windows operating systems.