Skip to content

belajar-rust/rust-shorty-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages