Skip to content

aptrishu/serverchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status
A cross browser chat app

live instance at - https://chatsserver.herokuapp.com

Steps to run it locally -

  1. Install NodeJS and npm
  2. Run 'npm install -d', It'll create the node_modules(dependencies required) folder from package.json
  3. Run program 'node app.js'

Heroku specific changes in the app(in app.js) -
You can force your app to run on a localhost port, just change

var port = process.env.PORT || 5000;  
server.listen(port);  

to

server.listen(your_port);  

Finally instantiate socket with your localhost address(in index.html)

var socket = io.connect('http://localhost:your_port');  

Your app will also run fine without these changes.

Releases

No releases published

Packages

No packages published