Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bassemhalim/chatroom
chat room with react + Go
https://github.com/bassemhalim/chatroom
gin-gonic go postgresql react typescript websocket
Last synced: 19 days ago
JSON representation
chat room with react + Go
- Host: GitHub
- URL: https://github.com/bassemhalim/chatroom
- Owner: BassemHalim
- Created: 2023-06-27T04:40:44.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-17T01:55:34.000Z (over 1 year ago)
- Last Synced: 2024-04-21T15:06:30.101Z (9 months ago)
- Topics: gin-gonic, go, postgresql, react, typescript, websocket
- Language: TypeScript
- Homepage:
- Size: 14.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Parler
![demo](chatroom-demo.gif)
A chatroom app where all app users are in a single chat room!Users can upvote or downvote messages
the website is built with __React TS__ and the backend is built using __Go__ using __Gin framework__
clients open a websocket with the sever in order to get real time updates of new messages.
currently Votes are not updated in real time, users need to reload the page# setup:
## Frontend:
```bash
## from root directory
cd client# Run the image in detached mode
sudo docker compose up -d
```## Backend:
create a .env file with the following variables and place it in /server
```
#.env
GIN_MODE=release
TOKEN_HOUR_LIFESPAN=4
JWT_SECRET=256-bit random secret key
DATABASE_HOST=
POSTGRES_USER=
POSTGRES_PASSWORD=
POSTGRES_NAME=
``````bash
## from root directory
cd server
```
to run manually user docker compose
```
sudo docker compose up -d
```![](screenshot2.png)
![](screenshot3.png)
![](screenshot1.png)