Comments on: Single Page Application example using AngularJS, Backbone.js and PHP Slim http://psitsmike.com/2014/06/single-page-application-example-using-angularjs-backbone-js-and-phpslim/ michael mukhin . los angeles . playing with javascript, node.js, php, socket.io, sand on sunny days Tue, 14 Jul 2015 09:19:15 +0000 hourly 1 http://wordpress.org/?v=4.1 By: Michael Schlegel http://psitsmike.com/2014/06/single-page-application-example-using-angularjs-backbone-js-and-phpslim/#comment-23067 Tue, 14 Apr 2015 17:21:12 +0000 http://psitsmike.com/?p=156#comment-23067 I had the same problem like Mario Ramos. I solved it by placing the .htaccess file (which is part of the Slim framework) in the api directory with the following content:
————-
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
————-

Beyond this I have to thank you for your work.

]]>
By: michael mukhin http://psitsmike.com/2014/06/single-page-application-example-using-angularjs-backbone-js-and-phpslim/#comment-23063 Fri, 10 Apr 2015 16:55:02 +0000 http://psitsmike.com/?p=156#comment-23063 Node already launches an HTTP server on port 8080. You can split the UI from the API, and call the api via localhost:8080/api

]]>
By: Mário Ramos http://psitsmike.com/2014/06/single-page-application-example-using-angularjs-backbone-js-and-phpslim/#comment-23061 Wed, 01 Apr 2015 11:37:41 +0000 http://psitsmike.com/?p=156#comment-23061 Hi!

What do I need to do to make this app work without using the built-in webserver?
This is, without accessing localhost:8080.
If I change the apiUrl variable in app-backbone,js or app-angular.js I get:
http://localhost/someother/path/api/teams/ 404(Not found).

Thanks for a great tutorial.

]]>
By: michael mukhin http://psitsmike.com/2014/06/single-page-application-example-using-angularjs-backbone-js-and-phpslim/#comment-22968 Mon, 03 Nov 2014 20:05:06 +0000 http://psitsmike.com/?p=156#comment-22968 I used Backbone to build a couple big apps, and I’ve yet to build a big one with Angular. I prefer Backbone because of my comfort level – not the wisest reason ;)

]]>
By: Sensir http://psitsmike.com/2014/06/single-page-application-example-using-angularjs-backbone-js-and-phpslim/#comment-22949 Tue, 21 Oct 2014 09:34:16 +0000 http://psitsmike.com/?p=156#comment-22949 Any comments on which one you liked better? Angular or Backbone?

]]>