/srdev-d9-exercises

Code exercises for senior developer applications

Primary LanguagePHP

Sr. Drupal Developer Code Exercises

Sr. Drupal Developer Code Exercises is brought to you by your friends at Last Call Media, these exercises are designed to assess your Drupal knowledge and see how you solve problems. Please don't spend more than three hours on it, and if you have trouble completing it in that time don't stress about it - we don't expect it all to be completed. Work in progress code is totally fine, as long as the direction can be explained during the interview. If you'd prefer to spend all the time on only one of the exercises and flesh it out more, that is also fine.

Note: The exercises are designed in the form of client requests, but in reality we would never expect requests of these types to be completed in the allotted three hours for this exercise :-)

Instructions

  • Read the exercises below
  • Clone the repository locally and perform the exercises.
    • Use the setup instructions below to run the site. Or, if you prefer you can use your own infrastructure.
  • Push your work up in a new, private repository in your own GitHub account.
  • Give the user lastcall-automation read access to your repository

Setup instructions

  1. If you don't have it already, install Lando
  2. Navigate to the project on the command line and run lando start
  3. Install php dependencies (lando composer install)
    • After this, there should be a functioning Drupal 9 site available at https://code.lndo.site with no database
  4. Import the database, so sample users and content are available
    • Run lando db-import exercise.sql.gz from the project root
  5. You can interact with the site using the lando cli tool.
    • ex: lando drush uli

note: A sample administrative user has been added to the database already:

  • username: root
  • password: root

Exercises

This project contains two custom modules, each housing a README that contains the instructions for each exercise.