huzairuje / rust-shorty-challenge

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)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)


Languages

Language:Rust 91.6%Language:Dockerfile 8.4%