There is any way to test a local development with IBM App ID? It works fine when you upload the app to bluemix, but I don't found how to make it work in local. Any advice or recommendation?
PS.I use Node for development
You can configure your local environment to use the App ID service. Specifically, you can develop code locally by using the App ID server SDK to send requests to the development server.
See https://console.bluemix.net/docs/services/appid/protecting-resources-local.html#protecting-local
Related
I build a web based mobile app (using react), which I'm hosting as an Azure Web app. This website is connected to a node server, which I'm hosting using a azure virtual machine (I don't know if this is the best approach, maybe I should host this as a webapp instead of VM ?).
I'm still new to this strategie of developing a web based mobile app and connecting it to a hosted backend in the cloud so I apologize if this is a trivial question.
I'm using websockets to connect my frontend to the node server and then I consume messages. I don't have a database it is a simple application.
The steps I'm doing to run the app are:
I connect to the Azure VM from my laptop with ssh
run my server using node server.js
When the server is runing, I can refresh my website and everything works fine
Now, the problem is that I want the node server to run all the time. However, I noticed that the server stops running when I deconnect (ssh) my laptop from the virtual machine. So I find myself doing these steps (connecting to the VM with ssh and running the server manually) each time I want to use the app.
Is there a way to do this so that the node server runs all the time without stoping? Also since I'm new to this, is this the right way to deploy frontend and backend? I assume I can't deploy both frontend and backend in the same Azure webapp or am I wrong?
(Since part of your question is around "Is there a better way?", I would answer that instead of fixing the issue in your current VM hosting :)).
To take full advantage of cloud for your applications, PaaS is always preferred over IaaS. In this case, unless you have any specific reason, you should deploy your backend Node app in another App Service (aka Web App). Or you can consider Azure Function also if your node app has a small set of APIs, but it will require code update. Both support multiple platforms including node.js. Since you mentioned you are leveraging Web App for your react mobile app, so I hope you are already bit familiar with it. Also since Azure Function would require code change, so Web App is preferred this case.
Note: I omitted other solutions like AKS, Service Fabric etc. for now, since currently we are talking about the problem of deploying only a single app, for which those will be overkill at this moment.
Also, to your point
I assume I can't deploy both frontend and backend in the same Azure webapp or am I wrong?
Yes technically you can, depending on your scenario by "bundling" into a single app if both are in same platform (like Node in this case). Though whether one should do that would be an opinionated answer. But even if you keep those separate, you can still leverage single App Service Plan for cost saving. So keeping separate like you have now is what I would suggest to maintain "separation of concern".
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.
Till now I was running the Composer REST Server (Blockchain) locally on the local host server. Now this server has got some post APIs configured which needs to be triggered by my main server already hosted on Heroku(Cloud Service).
So the flow of architecture is like my Android App calls Heroku Server which in turn has to call the Composer REST Server (which is running locally on my machine).
Hence I need to host the composer REST Server on a free tier cloud service. Although its a Node JS Server but it's package.json is weird and I am not able to find any resource which specifies how to take the Composer Online.
Please help!
Is your underlying Fabric is running in Docker Containers?
Assuming that it is, you can run your Composer REST Server in a container too. There is an example of this in the composer documentation for Multi-User mode which makes it look a little more complex, but the import piece is getting the Card in the container. There is also a Tutorial in the composer documentation again for multi user mode.
I have my Nodejs express application running on my local computer with mysql DB. Now, I want to deploy this application to a web server.
My problem is, I haven't done this before , so I thought a quick google will give me clue and lead me somewhere. All I have found is deploying to Amazon, Azure, Heroku, Digital Ocean and so on which provides to the best of my knowledge a cloud service.
I use domain factory, they are not cloud. I use bit bucket as my source control. How do I deploy my node server on the server of domain factory.?
After some hours of search ; i found some steps but I have tried none seems to work out.
I found this information,and others but there seems not to be a clear cut guide to do this apart from using a cloud service to push your project them.
Does anyone have a link or a guide as to how I can host my application
http://www.clock.co.uk/blog/deploying-nodejs-apps
It is incredibly easy to deploy your node.js express app to Heroku.
Just follow this tutorial to understand how to deploy a node.js app to Heroku.
Once you have understood it, you will be able to deploy your app to heroku with a simple "git push heroku master".
You can continue using bitbucket as your git repo for source control. You can simply define spearate git remotes for bitbucket and Heroku.
As for mysql: There are plenty of "MySQL as a Service" solutions out there for Heroku, such as the cleardb Heroku add on.
By using the free tier for Heroku and cleardb, you can probably run your app for free on Heroku.
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.