This example app is part of a tutorial on How to build a real-time voting app with WebSockets, React, & Typescript.
You can read the tutoiral here.
You can also check out the Wasp version of this app, which makes building with WebSockets even easier, as Wasp takes care of most of the boilerplate associated with building a full-stack React/NodeJS app.
Install the server dependencies
cd ws-server
npm install
npm i --save-dev @types/cors
Run the server
npm run start
Install the client dependencies
cd ws-client
npm install
Run the client
npm run dev
Read the tutorial: How to build a real-time voting app with WebSockets, React, & Typescript.
Join the Wasp Discord server and ask questions there. We are happy to help!