Skip to content
/ lqchatex Public

Live Qchatex, an open-source web chat application done by Fiqus for educational and experimental purposes.

License

Notifications You must be signed in to change notification settings

fiqus/lqchatex

Repository files navigation

Live Qchatex

Open sourced web application done by Fiqus for educational and experimental purposes.

The idea was to research and practice about Phoenix LiveView implementation and to play around a little with Phoenix PubSub + Presence for sockets, using Memento as Elixir wrapper to Erlang Mnesia for data storage.
Added clustering support by using libcluster, allowing Phoenix and Mnesia to work as distributed servers.

Live Qchatex is a very simple and quick chat engine that allows you to create and join chat rooms on-the-fly.
Don't need to register, just enter a nickname and you are ready to go!
NOTE: All chats, messages and users are automatically deleted after a certain period of inactivity.

App overview PDF: lqchatex-overview.pdf

Live running demo at: https://lqchatex.fiqus.coop/

Hosted by gigalixir.

Development

Pre-requisites

You will have to install:

  • Elixir 1.9 or later
  • Erlang/OTP 22 or later
  • Node.js 12 or later

Start a single server

  • Install dependencies with mix deps.get
  • Install Node.js dependencies with cd assets && npm install
  • Start Phoenix endpoint with mix phx.server

You can now visit http://localhost:4000 from your browser!

Mnesia reset data

  • mix mnesia.reset - remove the mnesia storage directory from disk

Makefile

Multiple server instances will connect to each other using libcluster with gossip topology!
You can try the cluster by running server, server1, server2 and release at the same time.

About

Live Qchatex, an open-source web chat application done by Fiqus for educational and experimental purposes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published