chat-server
chat-server copied to clipboard
:speech_balloon: [WIP] Simple Chat Server built with React, Node, Express and Socket.io
Chat Server
Note: Front-end is built with React, but is in a very bad state, and should be not used in production for many reasons. PRs are welcome.
Chat Server is built with React, Node, Express and Socket.io. Demo is available here.
Installation and Usage
-
git clone https://github.com/ummahusla/Chat-Server.git your-folder
-
cd your-folder
-
npm install
-
cd public/js/
-
vi script.js
- Replace
var socket = io.connect('https://chat-server-heroku.herokuapp.com/');
withvar socket = io.connect('http://localhost:1337/');
-
npm start
ornode app.js
ornodemon
P.S. In order to run a node on a different port, use PORT=8080 node app.js
.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Credits
License
MIT license