phonegap/node-phonegap-build-api

Phonegap + node js

Closed this issue · 4 comments

Hello!

Ignorant question, how do I integrate a PhoneGap project with node js, ie I and I have my project with node js but I want to run mobile with PhoneGap, I don't know how integrate, where they and other files.

And on the web I found nothing

Thanks for the help!

Raul. -

Hi @MarinoRaul

I think your question belongs on the PhoneGap Google Groups.

When you post your question on the Google Groups, I think you should clarify what you mean by "node.js."

node.js is a programming language that could integrate with a PhoneGap project in many ways. Can you specify what library you are using? For example, you could use the express library to be a web server that servers JSON to a PhoneGap application. You could build a command-line tool with node.js that compiles your PhoneGap application. You could also add this library (phonegap-build-api-js) to your command-line tool to build the app on PhoneGap Build.

In any case, this library (phonegap-build-api-js) is simply a way to programmatically interact with the PhoneGap Build API. It doesn't do anything more than that.

Hope that helps!
Michael

Thanks for that answer.

Y have my node app with socket io express tuiter express, i run node in console and i see my app in the browser. Well i want do this app for mobile devices with phonep.

I want to know which is the correct way to do this, i can with phonegap-build-api?

Can yo explain how do this.

Thanks for the help.

Raúl

Enviado desde mi iPad

El 26/01/2013, a las 16:43, "Michael Brooks" notifications@github.com escribió:

Hi @MarinoRaul

I think your question belongs on the PhoneGap Google Groups.

When you post your question on the Google Groups, I think you should clarify what you mean by "node.js."

node.js is a programming language that could integrate with a PhoneGap project in many ways. Can you specify what library you are using? For example, you could use the express library to be a web server that servers JSON to a PhoneGap application. You could build a command-line tool with node.js that compiles your PhoneGap application. You could also add this library (phonegap-build-api-js) to your command-line tool to build the app on PhoneGap Build.

In any case, this library (phonegap-build-api-js) is simply a way to programmatically interact with the PhoneGap Build API. It doesn't do anything more than that.

Hope that helps!
Michael


Reply to this email directly or view it on GitHub.

Hi @MarinoRaul,

No, phonegap-build-api-js cannot do this for you. There are many ways that you can connect PhoneGap and Express. The easiest is to change the PhoneGap application's starting point from index.html to the address of your Express application. However, there are other ways too.

I see you've posted on the PhoneGap Google Groups, so I'm linking it here for anyone else.

Hello!

I was trying all ways and I can not connect to the server, and click me io socket object.

You can integrate it? Phonegap, node js, express and socket io. I run the local server in my browser and it works perfectly, and when armed the index in assets / www io.connect call this object and click me ...

Already tried calling socket.io / socket.io.js and other ... but not working.

Someone could send me an example or some kind of more detailed help and take away the doubt if it can be local, and others!

Thank you!

Raul. -