A discussion solution in nodejs & angularjs