Coder Social home page Coder Social logo

drupal-scaffold's Introduction

Drupal Scaffold

Drupal 9 scaffold project to kick start development of a new instance of Drupal.

Dependencies

The only dependency this project has is Lando. All tools used for this project are containerized and wrapped with Lando.

Getting started

Place a copy of this repository in a new folder. In .lando.yml, change the name of the project. Then run lando start. This will install all dependencies via composer.

You can then execute the site installation by running the drush site-install command shown below. When prompted for database name, username, and password, enter drupal9 for all three. When prompted for host, use the hostnames value as reported when running: lando info --service=database (e.g. database.drupalscaffold.internal)

Site install command:

$ lando drush site-install standard --account-pass=admin

The command above will install Drupal with the standard installation profile. You can then log into Drupal as User 1 with admin / admin as the credentials.

Lando

You can type lando inside of the newly created project to see the available commands. Tools like Composer and npm are available with:

$ lando composer
$ lando npm

PHPCS

PHPCS is configured to follow Oomph's best practices, which include strict type checking on all php files, adding type hints to all methods, adding type hints to all parameters.

$ lando phpcs

PHPStan

PHPStan has been included to also scan for strict type checking as well as any deprecations with Drupal.

& lando phpstan

drupal-scaffold's People

Contributors

ben-hamelin avatar johncionci avatar nathandentzau avatar marcaddeo avatar jordan-caldwell avatar dependabot[bot] avatar kimdomenick avatar hotwebmatter avatar balbuf avatar jmstewart00 avatar raubin avatar pfrilling avatar jbenholt avatar codeclarified avatar johnpicozzi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.