Skip to content

A simple messaging/video chat app that does not save/track or monitor your messages.

Notifications You must be signed in to change notification settings

wolfgang000/micro_chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple messaging/video chat app that does not save/track or monitor your messages.

Thus if you were not present in the chat room when your friends were chatting about the last John Wick movie, tough luck, those messages are gone.

Backend CI badge Frontend CI badge E2E CI badge

Get started

docker compose up

Frontend: http://localhost:5173

Backend: http://localhost:4000

Tests

Backend

Frontend + E2E

Deployment

Setup server

# Install dokku
# wget -NP . https://dokku.com/bootstrap.sh
# sudo DOKKU_TAG=v0.32.4 bash bootstrap.sh
# dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git

dokku apps:create micro-chat-back
dokku builder:set micro-chat-back build-dir backend
dokku config:set micro-chat-back \
  # Set the variables from backend/.env.example.prod

dokku apps:create micro-chat-front
dokku builder:set micro-chat-front build-dir frontend
dokku config:set micro-chat-front \
  # Set the variables from frontend/.env.example.prod

# Setup domain
dokku domains:set micro-chat-front micro-chat.example.com
dokku domains:set micro-chat-back micro-chat-back.example.com

# Setup SSL certificate
# Remember to open the 443 port
dokku letsencrypt:set micro-chat-front email [email protected]
dokku letsencrypt:enable micro-chat-front
dokku letsencrypt:set micro-chat-back email [email protected]
dokku letsencrypt:enable micro-chat-back
dokku letsencrypt:cron-job --add

Deploy and push changes

git remote add server-backend [email protected]:micro-chat-back
git remote add server-frontend [email protected]:micro-chat-front

git push server-backend
git push server-frontend

Production debugging

Enter to the container

dokku enter micro-chat-back web /bin/sh

Open a remote elixir console

dokku enter micro-chat-back web bin/micro_chat remote

Show logs

dokku logs micro-chat-back

Todo

  • Add password protection
  • Add captcha
  • Add credo + format validation
  • Add tests Coverage
  • Add logger(front + back)
  • Add 404 page
  • Add room name
  • Add validations to username(front + back)
  • Add logo to login view
  • Handle connections error on WebRTC
  • Add username to video elements

About

A simple messaging/video chat app that does not save/track or monitor your messages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published