├── .gitmodules ├── LICENSE ├── README.md └── react-sse-node.png /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "client"] 2 | path = client 3 | url = https://github.com/supatechie/react-node-sse-client.git 4 | [submodule "server"] 5 | path = server 6 | url = https://github.com/supatechie/react-node-sse-server.git 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Peter Kelvin Torver 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Realtime Newsfeed Application Using React.js, Node.js & server-sent events(SSE) 2 | ![Realtime Newsfeed App Using SSE](./react-sse-node.png) 3 | ## About this project 4 | This is an implementation of a realtime data streaming in react js using server-sent events witn node js express server 5 | ## How to run this project 6 | Open client and server directories and read the README.md files to learn how to run the project. 7 | 8 | ## How to clone this project 9 | 10 | Run the command `git clone --recurse-submodules https://github.com/supatechie/react-node-sse.git` 11 | 12 | This repo uses **git submodule** so each subdirectory(client & server) are independent with their respective git controller. 13 | In order to commit the files in each dir, navigate to each dir and do so. 14 | 15 | ## Looking for Demo? 16 | Open [Visit the demo app](https://sse.techfortified.com) to view it in your browser. 17 | 18 | -------------------------------------------------------------------------------- /react-sse-node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/torver213/react-node-sse/6bc09ea337b1121e5edb3bd78bbb4cd79f59c49b/react-sse-node.png --------------------------------------------------------------------------------