Skip to content

huunguyencs/rust_shorten_url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple shorten URL Application using Rust (Rocket + Redis)

1. Set up

  • Clone this project
git clone [email protected]:huunguyencs/rust_shorten_url.git
  • Install & run redis. You can run redis with docker:
docker run -p 6379:6379 -d redis

2. Using

  • Run project:
cargo run
  • Shorten url:

POST: http://127.0.0.1:8000

Body:

{
  "ori_url": "<your_url>"
}

Response will include url shorted. Example:

Shorten successful to http://127.0.0.1:8000/0tTGhiP

About

Simple shorten url application server in Rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages