Creating an Application Using Yoman + Laravel

I would like to create an application using Laravel as a backend, and Yeoman to create and manage my interface. I know a lot of such technologies.

I did not find many problems that would explain how to communicate between separate Laravel and yoman applications (on different servers, for example). Perhaps CORS is a good option.

Is anyone trying to separate the backend and interface (using these technologies)?

+7
frameworks cors laravel yeoman
source share
3 answers

Yeoman is not a front-end interface, but rather an application scaffold to create a starting point for your front end.

Angular JS is my preferred option when using Laravel as a backend. You can use Yeoman to customize the Angular frontend using this:

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

A great tutorial series that really helped me when setting up AngularJS to talk with Laravel:

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

A rather extensive explanation of AngularJS security is included.

The Laravel backend must be configured as an API in the first case to receive requests, which is the starting point for installing the base API in Laravel from Laracon 2013

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

Laracasts also has an excellent series for creating APIs:

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

Laracasts is a paid subscription, but it will fully recommend it to Laravel beginners / resellers.

+11
source share

I know this a long time ago, since the question was asked, but maybe this helps someone along the way.

I would start with this package: https://github.com/jadjoubran/laravel5-angular-material-starter

Overview: http://www.laravel-angular.io/#/

which gives you:

  • Laravel 5.1
  • Angular
  • Angular Material

and much more, pre-configured, out of the box.

0
source share

In short:

CORS is a bad option.

Issue all requests to the frontend server and forward it to server server requests. In production, there is everything that is served exclusively by the server server.

Here's how to do it for Java frameworks, as well as for Django: https://stackoverflow.com/a/212377/
It should look the same as for your system and build system.

-5
source share

All Articles