View Code? Open in Web Editor
NEW
Small chat application in React, with websockets
License: MIT License
JavaScript 86.67%
HTML 13.33%
websocket-chat's Introduction
- An echo service implemented using websockets (socket.io) available on port 9001.
- A small client that provides a text box for sending messages to the service.
- A redux store containing just a reducer for storing messages.
What you're asked to implement/develop
- Set up the redux store to manage messages.
- Create a middleware to receive actions, and emit their messages to the socket.
- The middleware should also listen to the socket for messages, and dispatch the correct actions.
- Update the
<App />
component to render messages from the datastore.
- Feel free to break
<App />
into multiple components.
- Set up the appropriate actions/middleware to handle the expected functionality.
- Consider creating a robust API so that future changes to the chat protocol will be easy to implement.
- Consider adding tests to the app.
- Your submission should include a brief discussion of what architecture or design decisions you made, and how you arrived to them.
- Fork this repo, and clone it locally.
- Run
yarn
to install dependencies.
- Run
yarn start
to start the local development environment.
- Open
http://localhost:9000
in a browser.
- When done implementing the functionality, commit to your own fork, and open a PR or send a link to the repo.
websocket-chat's People
Contributors
Stargazers
Watchers