creating a simple chat app through golang
view demo at:
how to run the app locally:
- install docker, docker-compose
docker-compose build
docker-compose up
- goto localhost
how to setup dev environment:
- sudo vim
/etc/hosts
- add record -
127.0.0.1 app
- install nginx locally, add a config in
sites-enabled
config defined innginx.conf
- or just overwrite local
nginx.conf
withnginx.conf
#todos
functionalities v1.0:
- users can switch chat rooms
-
if last user leaves a chatroom, it will disappear, except for public room - easier emoji access, user can see all available emojis
- user joins or leaves a room, msg will broadcast to the users in the room
- a user list, where the chatroom shows who is inside the room
-
Private msg between usersfuture release - once ws timeouts, indicate timeout and button to reconnect
- nginx ws no socket timeout
-
when user joins they see previous n (5?) chat msg if availablefuture release - add debugging logs
- some chat logging into db
- secure, wss and https on nginx
deployment: -might do in the future
- git commit triggers build.
- auto deployment.