Skip to content

Latest commit

 

History

History
39 lines (38 loc) · 951 Bytes

README.md

File metadata and controls

39 lines (38 loc) · 951 Bytes

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