An open API service indexing awesome lists of open source software.

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)

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
```