You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This sounds outside the scope of yeoman, but I think it's relevant to anyone making a non-static website.
I'm using Laravel, a PHP framework. How am I supposed to set this up with a yo angular single page application?
I tried doing yo angular in Laravel's public folder (the documentRoot) but then I have /app and /dist and all kinds of crap in there. Also, css and js and compiled into a .tmp folder. Maybe I have to rewrite the gruntfile.js, but idk, it's just a mess. grunt server and grunt test would probably be impossible to use too because index.html wouldn't exist, it would be a view in my MVC framework.
So, I'm thinking I should just keep them separate? I'll host my angular app somewhere and have my Laravel framework just act as a RESTful API hosted somewhere else? I tried this and got Access-Control-Allow-Origin errors when trying to make ajax requests to my Laravel server; but maybe that's easier to deal with.
Any recommended way of doing this? Or is yeoman not designed for this?
The text was updated successfully, but these errors were encountered:
This sounds outside the scope of yeoman, but I think it's relevant to anyone making a non-static website.
I'm using Laravel, a PHP framework. How am I supposed to set this up with a
yo angular
single page application?I tried doing
yo angular
in Laravel'spublic
folder (the documentRoot) but then I have /app and /dist and all kinds of crap in there. Also, css and js and compiled into a .tmp folder. Maybe I have to rewrite the gruntfile.js, but idk, it's just a mess.grunt server
andgrunt test
would probably be impossible to use too because index.html wouldn't exist, it would be a view in my MVC framework.So, I'm thinking I should just keep them separate? I'll host my angular app somewhere and have my Laravel framework just act as a RESTful API hosted somewhere else? I tried this and got
Access-Control-Allow-Origin
errors when trying to make ajax requests to my Laravel server; but maybe that's easier to deal with.Any recommended way of doing this? Or is yeoman not designed for this?
The text was updated successfully, but these errors were encountered: