Skip to content

0xLaurens/chatr

Repository files navigation

Chatr

A chat room built using websockets and Rust (Axum), users can connect to a server through a WebSocket connection and communicate with each other in real-time. The client application is written in svelte.

image The client for the chat room is written in Svelte

Table of Contents

Features

  • Message broadcasting
  • Websocket
  • Client application
  • Unique usernames
  • Join/Leave messages
  • Multiple Rooms
  • Scrolling chat
  • View members of room

Installation

git clone https://github.com/0xLaurens/chatr
cd chatr

Usage

Server

Run the application

cargo run

Frontend

Navigate into the frontend

cd client

Create a .env file containing the following variables

PUBLIC_API_URL=http://0.0.0.0:3000/
PUBLIC_WEBSOCKET_URL=ws://localhost:3000

Install packages using

npm i

Run the site

npm run dev