Skip to content

Latest commit

 

History

History
70 lines (49 loc) · 1.11 KB

README.md

File metadata and controls

70 lines (49 loc) · 1.11 KB

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 in the client folder 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