This repository is meant for experimenting rust with actix and bunch of other stuff
away from the official docs for rust and the crates I used, I found those helpful
- YouTube video Rust Crash Course | Rustlang
- YouTube video Rust Concurrency Explained
- blog post series (I read part 1 only 😃) AUTH WEB MICROSERVICE WITH RUST USING ACTIX-WEB - COMPLETE TUTORIAL PART 1
- YouTube video Traits and You: A Deep Dive — Nell Shamrell-Harrington
- YouTube video Learning Rust: Memory, Ownership and Borrowing
- blog post A Basic Web Application with Rust and Actix-web
- stackoverflow question How to use MongoDB with r2d2 and actix in rust
assuming that you've postgres server up and running with user eq postgres and passowrd eq docker, you only need to run cargo run to start the app after ensuring diesel steps
Replace the cmd in the tutorial by
`sudo docker run --rm --name pg-docker -e POSTGRES_PASSWORD=docker -d -p 5432:5432 -v $HOME/docker/volumes/postgres:/var/lib/postgresql/data postgres`
And To kill local pg instance, if exists
sudo lsof -i :5432 # get pid
sudo kill {pid} # kill pg
cargo install diesel_clidiesel setupdiesel migration run
to simply add crates from the terminal
cargo install cargo-editcargo add {crate_name}
cargo install cargo-watchcargo watch -x runruns "cargo" and rebuild files on change