Chatr
A chat room built using websockets and Rust (Axum).
Install / Use
/learn @0xLaurens/ChatrREADME
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.
The client for the chat room is written in Svelte
Table of Contents
Features
- [x] Message broadcasting
- [x] Websocket
- [x] Client application
- [x] Unique usernames
- [x] Join/Leave messages
- [x] 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
