eChat is a simple chat app built as the successor to DocSocial. It is just as insecure as DocSocial as well.
eChat consits of two parts: the server (/Server) and the client (/). The server constists of 2 docker containers: A Centrifugo instance, connected to a Redis database for (not reliably) saving messages. The client is a Svelte app that connects to the server via Centrifuge.js with WebTransport.
You will need:
Instructions:
genconfig
argument to generate a config.json file, and replace the Secrets in the config.yml file with the newly generated onesgentoken -u 1
to generate a token, save this for laterdocker compose up
in the same directory to run the containersYou will need:
Instructions:
npm i -g pnpm
to install pnpm if you do not already have itpnpm i
to install all dependenciesTo start a local dev server, run pnpm run dev
and navigate to the link shown in the terminal (remember to use HTTPS!). Upon saving a file, your changes will be shown in the web browser.
The app's styling only works correctly at a resolution of 375x500! This is because the app was originally designed for use in a browser extension.
To build for production, run pnpm run build
, then pnpm run preview
(or pnpm run buildview
) to preview the final site.