todo-laravel-angularjs-homestead

A simple app to flush out how to best write/test a RESTful API (Laravel 4.2+), front end Web App (AngularJS) with packaged laravel/homestead setup

Added by: Sam Deering

GitHub

Repository

erikthedeveloper/todo-laravel-angularjs-homestead

Stats

Stars: 25

Watchers: 25

Forks: 6

Author

Erik Aybar
Erik Aybar

Module Description

The rundown...

  • Laravel 4.2+
  • AngularJS
  • Grunt ... or Gulp. We'll see :)
  • Homestead/Vagrant developement environment
  • PHPSpec ... and possibly Behat
  • Whatever other fancy jazz we decide to throw in the mix

Install/Setup Homestead Environment

  • Install homestead: http://laravel.com/docs/homestead#installation-and-setup
  • cd Project/Path/Homestead && cp Homestead-starter.yaml Homestead.yaml
  • "Should" only require some self-explanatory minor editing in the Homestead.yaml.
  • vagrant up
  • Edit your hosts file
  • Browse to
    • Laravel API: http://api.my-todo-app.dev/
    • FrontEnd: http://my-todo-app.dev/
  • You should be golden!

Running tests

Also: behat

  • From the LaravelApi directory
    • vendor/bin/phpspec run Or even better
  • Set up an alias or add to path
  • phpspec run --format=pretty

Voila! Beautiful documentation-ish test output with PHPSpec:

1__vagrant_homestead____mapped_theapp_laravelapi__bash_

Note: Feel free to poke around the feature branches, issues, and wiki to see what may or may not be in the works.

Contributions/Feedback welcome.

Module stats last updated: 2017-12-06 15:00:11

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!