- Create a
.env
file in the server root directory and copy the configuration in the.env.example
and paste in it - Adjust the variables to suit match with the client config
- Open a cmd window and navigate to the server directory
- Run the command
npm install
- Run the command
nodemon
and your project should be up and running - If you encounter any error running
nodemon
, ensure you install it globally by runningnpm install -g nodemon
then repeat step 5 again
torver213/react-node-sse-server
This is the react js server side implementation realtime app in react js, node js, express js & mongodb using server-sent-event
JavaScriptMIT