This is a project I made to try out socket.io Both react and socket.io (at the time of writing) are relatively new to me.
- yarn | npm
git clone https://github.com/Shiv-Patil/chatrooms.git
VITE_ENDPOINTpointing to the url where the server is hosted, leave blank to use localhost with default port
hostpointing to the domain where the frontend is hosted (optional, used for CORS)
cd chatrooms/server yarn # npm ci yarn run dev # npm run dev
Keep the above prcoess running.
In a new shell:
cd chatrooms/webapp yarn # npm ci yarn run dev # npm run dev