Coder Social home page Coder Social logo

drupal-project's Introduction

Drupal Project

Use this project as a template for working on Drupal core and contrib modules.

Requirements

Most of the dev tools are in the php Docker container, but you will need one or two out side of that.

This includes:

If you don't have these installed, then follow the instructions for your specific platform.

MacOS

Download and install Homebrew follow the online instructions.

Add the php tap:

brew tap homebrew/homebrew-php
brew install git composer php71 php71-mcrypt php71-xdebug

Windows

TBC

Installing

To create a new project in a directory called `myproject' run the following command.

composer create-project --no-install -s dev previousnext/drupal-project myproject

Docker

You will need to install Docker and related tools.

OS-specific Installation

MacOS

Download and install Docker for Mac

Windows

Download and install Docker for Windows

Download and install Make for Windows

Linux

You know what you're doing, right?

Docker Compose

Due to networking, and file system performance issues in Docker for Mac, you need a slightly different docker-compose.yml file for MacOS. To simplify your commands, we recommend creating an alias in ~/.bashrc such as:

alias dc='docker-compose -f docker-compose.osx.yml'

To start the container, run:

dc up -d

Setup and Install Drupal

For simplicity, run all commands from within the php container. You can get shell access via:

dc exec app bash

To initialise your local dev environment run the following:

make install

Developer Options

To set up common developer options, run:

make devify

Install a contrib module

The easiest way to install a contrib module to work on is via composer.

For example, to work on pathauto, type the following:

composer require drupal/pathauto --prefer-source

Testing

To run tests, run:

make test

drupal-project's People

Contributors

acbramley avatar kimpepper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

flxa svict4

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.