+
Skip to content

forkdo/shorturl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Rust URL Shortener 🚀  

A simple and efficient URL shortening service built with Rust and Actix-Web.  

## Features  
✅ Shorten long URLs into compact, shareable links  
✅ Store URLs in a lightweight database (SQLite/PostgreSQL)  
✅ Retrieve original URLs using short codes  
✅ Simple API with JSON responses  

## Tech Stack  
- **Rust** 🦀  
- **Actix-Web** (Fast and lightweight web framework)  
- **SQLx** (Async database interactions)  
- **Serde** (Serialization & Deserialization)  

## Installation & Running  
```sh
# Clone the repository
git clone https://github.com/yourusername/rust-url-link-shortener.git
cd rust-url-shortener

# Run the project
cargo run

API Endpoints

Method Endpoint Description
POST /shorten Shortens a given URL
GET /{shortcode} Redirects to full URL

License

MIT

About

This projects is a Rust-based implementation a URL shortener.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Rust 93.5%
  • Dockerfile 6.5%
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载