Chat app structure built with javascript and node js