Run Phonegap applicaton with node-express - node.js

I wanted to make mobile app from existing webapp. My webapp is nodejs-exressjs REST API server, with HTML/JS client.
I wanted to leverage API from my REST server, and swap out client with phonegap/cordova based mobile app.
Till now, the only feasible solution seems to be use CORS, and have phonegap/cordova server and nodejs servers running separately.
Is there a way I can use same server to deploy both my REST Server, and Phonegap/Cordova Client ?

No sorry, Cordova apps rely on having the front client in local, and perform calls to server in REST, so your first thought is correct. You can share the REST server for both applications, but the code of the cordova app client is going to be in the devices locally, without need of a server.

Related

Can I only deploy the server side of my react native app to Heroku?

I have a react native app that I'm building using expo. For the backend, I am using node.js and Express.
My app hierarchy is such that I have a frontend folder and a backend (server) folder. For example,
Root
|
|Frontend
|Various screens & associated files
|Server
|Routes & other files
For my project, is it possible to just host the backend and not the rest of the app? Such that when I fetch data in the frontend using HTTP requests, instead of routing through localhost (http: //RandomIP:PORT/route) I would use the heroku address as the routing address. I would also host the SQL database along with it.
I tried to follow along with the Heroku documentation, but it seemed like that was for hosting the entirety of the app / web apps instead of mobile, and I ran into constant errors.
I would like to point out that, unlike web pages, mobile apps cannot be hosted on the server and fetched on-demand. In other words, do not try to upload your react-native code to Heroku instead just upload your backend only and then make HTTP requests through the URL provided by Heroku after you have deployed your code.
Therefore go into your backend codebase, initialize a git repository and just deploy that Heroku. Also, you will need to host your SQL database on another service such as Google's Cloud SQL or Amazons AWS Database Services.

Run a Firebase Testlab test from node server

we have a Heroku hosted nodejs server that servers a rest API. We want to add an endpoint to which we can upload an APK and have the server spin up a test for us on Firebase.
I can't seem to find any nodejs server side libraries from Google to help me achieve this.
In your nodes server, you could call Cloud Testing API directly to start a test. Test execution results can be retrieved with Cloud Tool Results API. Both of these two APIs are public API and there is Nodejs client support.

Deploying nodejs in our own server

I am new to nodejs. I've created a simple webservice and it works on local but by using node app/nodemon app. Well I want to publish it internet and deploy my service in our server. (We do not want to use external servers/services such as heroku, azure etc.)
As I searched, peopel mostly deployed those services. So what is the best way to deploy a WS with nodejs in your own server?
I have a windows server for now but would like to use may be in linux platform later.

Apply SSL into IONIC Apps or Angular Web

I am new to this.
I have a app that build with IONIC, the backends(authentication, storage, DB) are running at firebase, and the IONIC will call some 3rd party API or my own API that build with node.js and hosted at heroku.
I would like to implement SSL to achieve point to point encryption, so that the real client data won't being hijack by fraud public wifi.
I have no clue where to start and how to do it, please advise and recommend.
Thank you.
All access to Firebase's backend services goes through secure connections (HTTPS/SSL). There is no way to access them through a non-secured connection.
To access for example the Firebase Database from your Ionic application, have a look at the documentation on getting started for web developers.

Is it possible to run a NodeJS app using phonegap?

I have a web app that is hosted on a web server that was created using NodeJS (http://www.ruffle.us). What I want to do is make this web app into a mobile application gaining access to the contact list to enter phone numbers. I have looked at technologies such as phonegap/cordova for this task but am still unsure from the documentation. Any experience or input on this would be appreciated.
Cordova provides a browser environment, so you can't run Node.js in it. But you can of course run your web frontend inside Cordova and use it to get access to device APIs like the contact list and communicate with your server.

Resources