Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The Minimal Dev (September 2017)

Jason Cosper
September 17, 2017

The Minimal Dev (September 2017)

No offense, but most local development environments are overkill. Vagrant is great if you want to match your site’s production environment, but it can often be fussy, and slow to spin up. Docker runs faster and is more lightweight, but it can be hard to get up and running if you’re not intimately familiar with how containers work.

Laravel’s Valet project is a simplified, local, PHP development environment for minimalists that uses lightweight packages—not virtual machines— to speed up development time.

In this session I will demonstrate how to install Valet, show off some of the features that make it so useful for WordPress developers, and share some power user tricks that I’ve learned while using it.

Jason Cosper

September 17, 2017
Tweet

More Decks by Jason Cosper

Other Decks in Programming

Transcript

  1. The
    Minimal
    Dev

    View Slide

  2. What are local
    development
    environments?

    View Slide

  3. Who should
    use a development
    environment?

    View Slide

  4. A brief history
    of PHP development
    environments

    View Slide

  5. MAMP
    and/or
    WAMP

    View Slide

  6. Vagrant

    View Slide

  7. Docker

    View Slide

  8. Local

    View Slide

  9. Valet

    View Slide

  10. Valet
    is bae

    View Slide

  11. → wp valet new tacos "#admin_user=boogah
    "#admin_password=queso-pastor-harina

    View Slide

  12. Installing Valet
    https:!"goo.gl/VtBKPq

    View Slide

  13. Fun
    with
    Valet

    View Slide

  14. Share Your Site
    → cd ~/sites/valet/tacos
    → valet share

    View Slide

  15. Play with Elasticsearch
    → brew tap caskroom/cask
    → brew cask install java
    → brew install elasticsearch
    → brew pin elasticsearch
    http:!"localhost:9200

    View Slide

  16. Play with Redis
    → brew install redis
    → brew services start redis
    → brew install php70-redis
    tcp:!"localhost:6379

    View Slide

  17. If all of this
    command line stuff
    freaks you out...

    View Slide

  18. But
    what
    about...

    View Slide

  19. Questions?

    View Slide