building a xmpp server - node.js

I want to write android chat based application.
So intead of using gcm I want to extend the existing xmpp server.
So i tried with xmpp node js server. But all the features are not implemented in that server .So i thought extending the nodejs xmpp server.
Are they any better docs or tutorials to understand more about xmpp server.
if not nodejs xmpp server, how can i extend jabber or any other xmpp server.
I googled a lot but I didn't find any docs related to extending a jabber-like server.

You can use Openfire server source code from Github:
https://github.com/igniterealtime/Openfire
You can build openfire source in IntelliJ if you are already familiar with Android Studio. Here is some insight:
https://discourse.igniterealtime.org/t/can-i-develop-openfire-using-ide-tool-intellij-idea/76503
Also you can open Openfire source code in Eclipse:
Setup Eclipse for OpenFire server

Related

What should I choose if I want to communicate between a .NET core and NodeJS app?

We have an Electron app that comes bundled with a .NET core application.
These two applications need to be able to communicate, right now we use ancient technology by writing to a JSON file that the .NET core application "polls" from regularly.
We want to upgrade this to use sockets instead. The NodeJS developer want to use socket.io and the .NET Core developer wants to use SignalR.
So the questions are probably:
Does SignalR run fine with Node?
Does Socket.io run fine with .NET Core?
Should we just use standard WebSockets on both ends instead?
SignalR can be running on Electron as Client.
Socket.io is hard to communicate with .net.
(Recommended) SignalR on both sides(.net as Host, Electron as client)
Microsoft docs : Running SignalR Javascript client
or using websocket protocol in both-side.
As you know Socket.io is a library which implements websocket. so SinalR and Socket.io is not fully matched on each other.
socketio4net(socket.io client on .net) is not maintained now.
So if you want to communicated by socket.io,
You can running socket.io on Electron as Host, and .net as client with WebsocketPackages (not SignalR)

node.js self-hosting on windows without iisnode

Sorry for if it's a duplicate but i couldn't find it.
I have an .net mvc app on windows server 2012 R2 with IIS 8.5. I will use some socket operations in my app. So i write an app in node.js with socket.io.
I want to host my node app in same server. All articles that i've found says "use iisnode". But I am not sure about that because of possible issues. Specially performance issues make me suspicious.
My questions are:
Should i trust iisnode to serve node app on windows?
or
What are any other options to host node.js app on windows without iisnode?
I've already read
Installing and Running node.js applications within IIS on Windows - Are you mad?, https://tomasz.janczuk.org/2011/08/hosting-nodejs-applications-in-iis-on.html and https://tomasz.janczuk.org/2013/01/hosting-socketio-websocket-apps-in-iis.html blog posts.

Deploy NodeJs Express App on Windows and Linux Server

I am developing a small project which contains few applications:
A node.js rest API
A node.js app that use socket.io.
A static app that server html js file to the client.
I am also using a MongoDb.
In few weeks, I'll have to deploy this app in production and I have some requirements that the app should be installed on windows and Linux server (Don't really know if it really matters).
I had a look at some tooling :
StrongLoop Process Manager
PM2
Forever
But cannot really find out if these tools are up to date or if there are better alternative in 2016 ?
Here are what seem to be the recommended ways that I've found:
Windows: iis-node (and this vid is helpful to get that going). Also note you'll need IIS 8x to support websockets.
Linux: PM2 to manage the process, and nginx for proxy server. This article has helpful step-by-step for Ubuntu.

How to link Android Studio with PhpmyAdmin

I am new to Android Studio and Pho programming.
I am making a Login/Register App on Android Studio and want to link it with database I created on PhpMyAdmin. I read around and many suggest the use of WAMP server to do so.
Can I connect to phpMyAdmin without WAMP server. I installed manually php, mysql, and Apache24. If this is possible, which URL, I have to use. Also, where I need to put my pfp.files.
Thanks
You dont connect to Phpmyadmin. Phpmyadmin is just a gui for mysql. You are going to have to write a backend for your application in php for example and send request to that.

Windows Phone with node.js / socket-io. How to start?

I have some socket-io server on node.js running.
I want to communicate from Windows Phone application to this node.js.
But I have no idea how to start with this.
I've found SocketIO4NET and it's running fantastic but on console application. I can not move it to Windows Phone unfortenately because there is no WP version of SocketIO4NET assembly.
Does anybody have any idea how to bite it?
One approach to this could be as follows.
Create a phonegap app for the Windows Phone, with socket.io.js included in the app (so that it can send events to the node server). And obviously create a NodeJs server, with socket.io module, which will listen and respond to the events sent from the phonegap app.
This approach could be useful, if you really don't want to stick to a native Windows Phone app.
Refer to this video to get a clue. http://www.youtube.com/watch?v=M5IAlnU96SI

Resources