wilded
10/18/2019 - 5:47 AM

Typo3 DDEV Installation

1 Create folder directory and add a composer.json file:

{
    "name": "t3g/demo",
    "description": "",
    "type": "project",
    "license": "GPL2",
    "require": {
        "php": "^7.0",
        "vlucas/phpdotenv": "^2.0.14",
        "typo3/cms": "^8.7",
        "dmitryd/typo3-realurl": "dev-development",
        "bk2k/bootstrap-package": "^6.2.10",
        "georgringer/news": "^7.0"
    },
    "extra": {
        "typo3/cms": {
            "cms-package-dir": "{$vendor-dir}/typo3/cms",
            "web-dir": "public"
        }
    },
    "config": {
        "bin-dir": "bin",
        "vendor-dir": "vendor",
        "platform": {
            "php": "7.1.3"
        }
    }
}

2 Make sure PHP Version is 7 +
    - Terminal> php -v
    + To update php version:
    1- Run on Terminal curl -s https://php-osx.liip.ch/install.sh | bash -s 7.2
    2- Wait for installation to complete
    3- Run on terminal: export PATH=/usr/local/php5/bin:$PATH
    4- Restart apache: sudo /usr/sbin/apachectl restart
    5- Verify new version: php -v

3 Make sure Brew is installed (https://docs.brew.sh/Installation)
4 Make sure Docker is installed (brew cask install docker)
5 Install DDEV With Brew (brew tap drud/ddev && brew install ddev)
6 Instal YARN (brew install yarn)
7 Run: composer install
8 Run: ddev config (use default project name, root route and type)
9 Run: ddev start (make sure another appache is not running: stop with sudo /usr/sbin/apachectl stop)
10 Run given link fron terminal (Project can be reached at http://...)
11 Create FIRST_INSTALL in public directory (touch public/FIRST_INSTALL)
12 Follow Typo3 installation steps

Sources: 
https://www.youtube.com/watch?v=HZVMPoI9SIk&feature=youtu.be