ChatSockets
This is a simple chat application with Redux, React and websockets. This is a simple demonstration of the posibilities of using React for creating chat applications that communicate via websockets.
Getting Started
Getting started is pretty simple, ensure you have node, npm/yarn installed on your development environment. Installation instructions can be found in the links provided.
$ git clone https://github.com/BrianLusina/chat-sockets.git
$ cd chat-sockets
$ cd client
$ yarn install
# if using npm
$ npm install
$ cd ..
$ cd server
$ yarn install
This will get you a copy of the project and install dependencies you need from the package.json provided
Running the application
Running the application is as simple as:
$ cd client
$ yarn start
# if using npm
$ npm run start
$ cd server
$ yarn start
This will run in development mode on address http://localhost:3000. Open Several browsers with the same address to act like different clients and different clients will be created. That is it.
Go a step further and tunnel the localhost address using something like ngrok to allow multiple computers to connect while the development server is running.
Running tests
Tests can be run with
$ cd client
$ yarn test
# or
$ npm run test
Enjoy!