Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API only installation #85

Open
ihabassi opened this issue Dec 21, 2014 · 5 comments
Open

API only installation #85

ihabassi opened this issue Dec 21, 2014 · 5 comments

Comments

@ihabassi
Copy link

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
Copy link
Collaborator

aonic commented Dec 22, 2014

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
#85.

@Cool-and-Deadly
Copy link
Contributor

@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
Copy link
Owner

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

@aonic
Copy link
Collaborator

aonic commented Jan 6, 2015

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants