https://github.com/sugidaffection/rust-shortlink
a rust url shortener web application
https://github.com/sugidaffection/rust-shortlink
actix actix-web link-shortener rust rust-lang shortlink shorturl url-shortener
Last synced: about 1 month ago
JSON representation
a rust url shortener web application
- Host: GitHub
- URL: https://github.com/sugidaffection/rust-shortlink
- Owner: sugidaffection
- License: gpl-3.0
- Created: 2022-06-02T18:50:08.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-17T16:11:15.000Z (over 1 year ago)
- Last Synced: 2025-03-17T16:43:12.556Z (over 1 year ago)
- Topics: actix, actix-web, link-shortener, rust, rust-lang, shortlink, shorturl, url-shortener
- Language: Rust
- Homepage:
- Size: 651 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rust Shortlink


## Table of Contents
- [About](#about)
- [Getting Started](#getting_started)
A simple url shortener web application. Save and manage your long url.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
### Prerequisites
What things you need to install the software and how to install them:
```
postgresql ^=14
rust ^=1.58
cargo-leptos
```
Additionally, if you are using a Linux-based system, you need to install libpq-dev for PostgreSQL support:
```
sudo apt update
sudo apt install libpq-dev
```
Install cargo-leptos:
```
cargo install cargo-leptos
```
### Installing
Clone the repository and install dependencies:
```
git clone
cd rust-shortlink
```
### Run Server
First, setup your environment:
```
cp .env.example .env
# Edit .env with your database settings
```
For development with hot-reload:
```
cargo leptos watch
```
For production build:
```
cargo leptos build --release
```
The server will start at `http://localhost:3000` by default.