Swiip / generator-gulp-angular

Yeoman generator for AngularJS with GulpJS [UNMAINTAINED next iteration is FountainJS]
http://fountainjs.io
3.72k stars 666 forks source link

How can i place my php files inside the project folder. #966

Open alaksandarjesus opened 8 years ago

alaksandarjesus commented 8 years ago

Hi...

I developed my application and now while developing the backend, i uploaded my laravel to src/api folder, and the restangular is not detecting my localhost:3000

How can i get it worked in such a way that localhost:3000/api will work.

nitetrik commented 8 years ago

You need to to use either a middleman proxy while in development, or in production you could use nginx as a reverse proxy. So nginx will display your static files and when you go to /api it will go to laravel. You should send/receive data via json. Its bit different when using Sinatra or rails with angularjs. like how i do it(many ways to setup) is i have nginx pointed to my static angular app and nginx forwards all connections to /api// to my rails app via to rails server on port 3000.