https://github.com/shiv-patil/chatrooms
Chat rooms using socket.io (below link server down)
https://github.com/shiv-patil/chatrooms
nodejs react socket-io
Last synced: 11 months ago
JSON representation
Chat rooms using socket.io (below link server down)
- Host: GitHub
- URL: https://github.com/shiv-patil/chatrooms
- Owner: Shiv-Patil
- License: mit
- Created: 2022-03-31T12:39:04.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-21T09:57:14.000Z (about 4 years ago)
- Last Synced: 2025-04-22T20:07:35.379Z (about 1 year ago)
- Topics: nodejs, react, socket-io
- Language: JavaScript
- Homepage: https://krymzinchatrooms.netlify.app
- Size: 984 KB
- Stars: 7
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Chat rooms
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.

---
## Running Locally
### Requirements
- git
- node
- yarn | npm
### Instructions
```bash
git clone https://github.com/Shiv-Patil/chatrooms.git
```
- Edit `webapp/.env` with `VITE_ENDPOINT` pointing to the url where the server is hosted, leave blank to use localhost with default port
- Create `server/.env` with `host` pointing to the domain where the frontend is hosted (optional, used for CORS)
```bash
cd chatrooms/server
yarn # npm ci
yarn run dev # npm run dev
```
Keep the above prcoess running.
In a new shell:
```bash
cd chatrooms/webapp
yarn # npm ci
yarn run dev # npm run dev
```