huzairuje / rust-actix-sample

web server using rust with framework rust actix web, using sqlx and authentication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

web server using rust with framework rust actix web, using sqlx and authentication


Languages

Language:Rust 99.3%Language:Makefile 0.7%