Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building an app with Yeoman + Laravel

I would like to build an application using Laravel as backend and Yeoman to build and manage my frontend. I know quite a few of these technologies.

I did not found a lot of worflows that would explain how to communicate between separate Laravel app and yeoman app (on different servers e.g). Maybe CORS is a good option.

Is anyone ever try to separate backend and frontend (with these technologies)?

like image 322
lightalex Avatar asked Mar 06 '14 10:03

lightalex


1 Answers

Yeoman is not a front end framework - rather an application scaffold for generating a starting point for your front end.

Angular JS is my preferred option when using Laravel as a backend. You can use Yeoman to set up an Angular front end using this:

https://github.com/yeoman/generator-angular

An excellent tutorial series that helped me a lot when setting AngularJS up to talk to Laravel is here:

https://github.com/davemo/end-to-end-with-angularjs

Included is quite an extensive explanation on AngularJS security.

The Laravel backend should be setup as an API in the first instance to accept requests, heres a starting point to setup a basic API in Laravel from Laracon 2013

https://github.com/akuzemchak/laracon-todo-api

Laracasts also has a great series for building API's:

https://laracasts.com/series/incremental-api-development

Laracasts is a paid subscription service but would fully recommend it to Laravel beginners/intermediates

like image 184
markinnes Avatar answered Nov 05 '22 03:11

markinnes