This project is split into two independent applications:
React Router web application running on http://localhost:5173
Start client:
npm install
npm run devNode.js/Express Socket.io server running on http://localhost:3000
Start server:
cd server
npm install
npm run devThis server/ folder is prepared to be split into its own branch or repository. See server/README.md for detailed extraction commands and notes.
- Client: React Router app that connects to the Socket.io server
- Server: Express + Socket.io for receiving signals from the client and logging them to terminal
When you click the button in the client, it sends a signal to the server which logs it to the terminal.
Terminal 1 - Client:
npm run devTerminal 2 - Server:
cd server && npm run devBoth will run simultaneously, and the client will communicate with the server via Socket.io.