Skip to content

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

Notifications You must be signed in to change notification settings

huzairuje/rust-actix-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published