This is my socket programming homework.
Do not forget to use npm
/ yarn
to install all dependencies.
Either the UDP-based app or TCP-based app work exactly the same way.
First, start the server.
cd {YOUR DIRECTORY}/{TCP or UDP}/server
node server.js
Second, start the react-app by npm
cd {YOUR DIRECTORY}/{TCP or UDP}/client
npm start
or by yarn
.
cd {YOUR DIRECTORY}/{TCP or UDP}/client
yarn start
Third, start the electron by npm
cd {YOUR DIRECTORY}/{TCP or UDP}/client
npm run electron-start
or by yarn
cd {YOUR DIRECTORY}/{TCP or UDP}/client
yarn run electron-start