https://github.com/fenjalien/chat-web-app
https://github.com/fenjalien/chat-web-app
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/fenjalien/chat-web-app
- Owner: fenjalien
- Created: 2023-12-17T21:32:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-03T10:37:20.000Z (over 1 year ago)
- Last Synced: 2024-04-14T03:08:12.750Z (about 1 year ago)
- Language: TypeScript
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chat Web App
A chat web app built using:
- [yjs](https://github.com/yjs/yjs)
- [Hocuspocus](https://github.com/ueberdosis/hocuspocus)
- [React](https://react.dev/)
- [Joy UI](https://mui.com/joy-ui/getting-started/)
- [TypeScript](https://www.typescriptlang.org/)
## Local Development
Run
```
npm install
```
in both `frontend` and `backend` folders.
Start the backend with the following command in `backend/`:
```
npm run start
```
Start the frontend with the following command in `frontend/`:
```
npm run dev
```
### Remote Devices
To access the application on a remote device on the same network, change the `url` parameter in the `HocuspocusProvider` configuration in `frontend/src/App.tsx` to the IPv4 address of the device the backend is running on. Then start the backend normally and run the following command in `frontend/`:
```
npm run dev -- --host
```