Skip to content

Latest commit

 

History

History
42 lines (40 loc) · 995 Bytes

README.md

File metadata and controls

42 lines (40 loc) · 995 Bytes

Rust - Sample API notes with user authentication

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.71 rust nightly)
      rustup install nightly
    c. set the rust nightly installation set to default
      rustup default nightly
    d. install the crate by this command
      make install
    or use this command
     # HotReload
      cargo install cargo-watch
     # SQLX-CLI
      cargo install sqlx-cli
  2. make .env file on the root project folder
  3. setup the env like database, etc.
  4. compile the web app
       cargo build
  5. running the web app service
      cargo run 
    or prefer the release
       cargo run --release