Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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)