https://github.com/suapapa/relay-webchat
Relay web-chat between browser and local server.
https://github.com/suapapa/relay-webchat
go react webchat websoket widget
Last synced: 5 months ago
JSON representation
Relay web-chat between browser and local server.
- Host: GitHub
- URL: https://github.com/suapapa/relay-webchat
- Owner: suapapa
- Created: 2025-05-04T15:16:30.000Z (about 1 year ago)
- Default Branch: dev
- Last Pushed: 2025-06-06T14:54:08.000Z (about 1 year ago)
- Last Synced: 2025-06-06T15:42:45.166Z (about 1 year ago)
- Topics: go, react, webchat, websoket, widget
- Language: Go
- Homepage:
- Size: 51.5 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Relay-WebChat

이 프로젝트는 개인 사이트, homin.dev 의 웹쳇 위젯을 로컬 서버에서 호스팅 하기 위해
세 개의 컴포넌트로 구성되어 있습니다.
```
┌─────────────────┐ ┌─────────────┐ ┌─────────────┐
│ WebChat Widget │◀─rest─▶│ Relay │◀─ws─▶│ Processor │
│ (client) │ │ (cloud) │ │ (local AI) │
└─────────────────┘ └─────────────┘ └─────────────┘
```
## WebChat Widget
React로 작성되어 있는 웹쳇 위젯.
Build:
```sh
cd webchat-widget
npm install
npm run build
```
웹페이지에 추가하기:
1. `dist/webchat-widget.umd.js`를 적당한 곳에 호스팅.
2. `dist/index.html` 파일을 참고해 웹쳇 위젯을 추가할 페이지에 다음의 예제와 같이 추가.
```html