php - Where can I find detailed resource about application structure with Laravel 4 and AngularJS? -


i started develop social network, problem started mix laravel view angularjs led me few problems.

i searching around net not able find info this.

could me out or give me hint?

i prefer decouple angular.js application backend (any backend). can pick tool linemanjs or yeoman.

with lineman (which 1 use) develop app without backend, in "isolated way". can use fake backend while in development mode or can have laravel running @ port 4567 (just example) , tell lineman there real backend @ 4567 create proxy (so can use real backend when app in different folder).

the advantages many. decoupled backend, can switch others without change in angular. can take advantage of pre-configure set of tasks grunt coffeescript, lint, sourcemaps, auto creation of $templatecache, ngmin avoid minification problems, minification, concatenation... , more if want.

you have unit , e2e tests preconfigured...

in short, using workflow can create angular.js app plays backend , provides lot of tools create app easily.

to deploy, both lineman , yeoman creates "dist" folder app itself, bunch of static files.

to deploy laravel, need drop (except index.html) /public folder of laravel. convert index.html home.php in laravel's /view folder , create route it.

we need able serve index.html laravel , best way found. able use html5 mode , make work perfect , both part decoupled.

cheers.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -