Skip to content

make micro service to serve compressed url into several strings or we can name it shorty. using rust and use Arc and Mutex in rust (practice not using any database whatsover)

Notifications You must be signed in to change notification settings

huzairuje/rust-shorty-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust - Sample API for shorty challenge (tiny-url)

Prerequisite

  1. rust build nightly using rustup chain command. a. install rust with this command (Unix like or linux)
       curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    b. install rust nightly (version this 1.69 rust stable)
      rustup install stable
    c. set the rust nightly installation set to default
      rustup default stable
    d. install the crate by this command
      make install
    or use this command
     # HotReload
      cargo install cargo-watch
  2. make .env file on the root project folder
  3. setup the env like port or host, etc.
  4. compile the web app
       cargo build
  5. running the web app service
      cargo run 
    or prefer the release
       cargo run --release

About

make micro service to serve compressed url into several strings or we can name it shorty. using rust and use Arc and Mutex in rust (practice not using any database whatsover)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published