https://github.com/xtrinch/node-react-sockjs-chat
Realtime chat application featuring Node.js as the backend server, SockJS for handling socket connections and React on the frontend.
https://github.com/xtrinch/node-react-sockjs-chat
Last synced: about 1 month ago
JSON representation
Realtime chat application featuring Node.js as the backend server, SockJS for handling socket connections and React on the frontend.
- Host: GitHub
- URL: https://github.com/xtrinch/node-react-sockjs-chat
- Owner: xtrinch
- License: gpl-2.0
- Created: 2016-08-14T19:53:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-22T18:52:16.000Z (over 7 years ago)
- Last Synced: 2025-02-28T19:52:45.942Z (about 2 months ago)
- Language: JavaScript
- Size: 26.4 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node.js - React - SockJS chat
A simple chat application featuring Node.js as the backend server, SockJS for
handling socket connections and React on the frontend handling view updates.## See it in action: [http://chat.trina.si/](http://chat.trina.si/)
## Setup:
$ npm install -g concurrently webpack-dev-server nodemon
$ npm install## For running development server:
$ npm run-script watch
In development, Node.js is running on port 8080, requests from the client are
proxied to it by webpack-dev-server running on port 3000.Browse to:
http://localhost:3000/
## For running production server:
$ npm run-script production
With this command, all React files are bundled with webpack and a single Node.js server instance
runs at port 8080, serving the bundled files as static assets.Browse to:
http://localhost:8080/
## Docker support$ docker-compose up -d
Mounts the files into a container and exposes port 8001.