React client on a Node server, calling a Heroku-deployed API with dummy data.
Must have Node/npm installed on your machine
-
Clone this repo (
git clone https://github.com/travisty12/socket-test
) -
Enter the server scope (
cd socket-test/server
) -
Download server dependencies and start the server (
npm i; node app.js
) -
In a different terminal, enter the client scope (
cd ../client
) -
Download client dependencies and launch the page (
npm i; npm start
);
- Client stops receiving socket emissions after sending an emission back to the server
This software is licensed under the MIT license
(c) 2020 Travis Scott