Skip to content

Latest commit

 

History

History
60 lines (48 loc) · 2.96 KB

README.md

File metadata and controls

60 lines (48 loc) · 2.96 KB

Wave PHP - Double Loop Tutorial

This tutorial will walk through practicing the Double Loop Workflow to create a small application.

Requirements

Setup - Do this before the conference!

  • composer install
  • docker-compose up -d
  • edit hosts file
127.0.0.1   local.chirper.com
127.0.0.1   api.chirper.com
127.0.0.1   db.chirper.com

Note: If you're using docker-machine instead of Docker Desktop (Docker for Mac / Windows), use the correct IP address

API PHP Info Page Chirper App

If you are unable to complete these steps before the tutorial, please message me on Twitter @jessicamauerhan - and we will debug, or we will get it working day of.

Run Project

  • First, follow the steps in the Setup section if you haven't already.
  • docker-compose exec api vendor/bin/phinx migrate will setup the database

Recommended

PHP Storm 7.2

Extra Resources / Info

  • JSON API - Our API will be implementing JSON API
  • UUID Generator - You may want this during testing
  • Vue - FYI: The frontend app is built using vuetify via vue-cli. You do not need any Vue knowledge, we will not be editing the frontend, just testing the end-to-end user experience.

Documentation for Dependencies

One of the things we focus on in this workflow is decoupling dependencies. Any of these can be replaced at any time by another tool. This demo is not meant to be specific to any of these third party libraries, we simply use them to solve a common problem such as routing or validation, unrelated to the business logic code.

Docs for Testing Tools