Wildhoney / Magento-on-Angular

Angular.js application using Magento as the backend API
360 stars 120 forks source link

API only installation #85

Open ihabassi opened 9 years ago

ihabassi commented 9 years ago

Hi, Is it possible to install the API only? If yes do you have any step by step instruction how to install it.

Thanks, Ihab

aonic commented 9 years ago

Try following the getting started in the readme but don't do the node JS server. That should give you the API only On Sun, Dec 21, 2014 at 10:31 AM ihabassi notifications@github.com wrote:

Hi, Is it possible to install the API only? If yes do you have any step by step instruction how to install it.

Thanks, Ihab

— Reply to this email directly or view it on GitHub https://github.com/Wildhoney/Magento-on-Angular/issues/85.

Cool-and-Deadly commented 9 years ago

@aonic Does that mean to retrieve product data via API (and not via sockets) you simply leave out the command node node/server.js?

I tried it and without the node command I can't retrieve any products. The browser console outputs an Angular digest error: Uncaught Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!

Any clue?

Wildhoney commented 9 years ago

You need to modify the code to retrieve the products from /products, rather than relying on WebSockets.

aonic commented 9 years ago

Yes, I thought you wanted to use the API server without the Angular front-end (in a different project). You can do that, but the Angular code as-is uses the web socket from the node server

Cool-and-Deadly commented 9 years ago

OK sorry I think I misunderstood .. @aonic you're right @ihabassi might just wanna use the API in a different context.