Overview:
Hurlurl is a load balancing link shortener that allows users to create a single URL that redirects to one of multiple specified URLs randomly. This tool can be particularly useful in scenarios where a large group of people needs to be directed to different instances of a game or an online whiteboard, such as on a Discord server or Twitch stream. The creator of Hurlurl developed it for an event where people needed to be directed to different boards on a website called hellopaint.io. While Hurlurl is commonly used for load balancing people rather than HTTP requests, it can also serve as a traditional load balancer. The frontend of Hurlurl is written in Rust with Yew, while the backend is written in Rust with Diesel and Axum.
Features:
- Load Balancing: Hurlurl allows users to create a single URL that redirects to one of multiple specified URLs randomly.
- Customized redirection: Users can send different groups of people to different instances of a game or an online whiteboard, making it suitable for use in events and social scenarios.
- Frontend and Backend: Hurlurl consists of a frontend written in Rust with Yew and a backend written in Rust with Diesel and Axum.
Installation:
To install and use Hurlurl, follow these steps:
- Clone the Hurlurl repository from GitHub.
- Navigate to the “Developmentweb” folder, which contains the frontend code.
- Install the required dependencies by running the following command:
npm install
- Build the frontend code by running the following command:
npm run build
- Navigate to the “urllb” folder, which contains the backend code.
- Install the required dependencies by running the following command:
cargo install
- Build the backend code by running the following command:
cargo build
- Run the Hurlurl application:
cargo run
- Access the Hurlurl application in your web browser at the specified URL, typically http://localhost:8000.
Summary:
Hurlurl is a load balancing link shortener that simplifies the process of redirecting users to multiple URLs. It allows users to create a single URL that randomly redirects to one of the specified URLs, making it suitable for scenarios where different groups of people need to be directed to different instances of a game or an online whiteboard. The frontend of Hurlurl is written in Rust with Yew, while the backend is written in Rust with Diesel and Axum. By following the provided installation guide, users can easily set up and use Hurlurl for their load balancing needs.