/rust-todomvc

TodoMVC in Rust from Scratch (YouTube video tutorial)

Primary LanguageRustApache License 2.0Apache-2.0

Rust Programming Web Development Tutorial for building a simple Web Application, todoMVC, from scratch with WARP, SQLX, Database (PostgreSQL), and Native Web Components.

YouTube tutorials:

Dev Test

# Test for model
cargo watch -q -c -w src/ -x 'test model_ -- --test-threads=1 --nocapture'

# Test for web
cargo watch -q -c -w src/ -x 'test web_ -- --test-threads=1 --nocapture'

Dev Web

cargo watch -q -c -w src/ -x 'run -- ../frontend/web-folder'

DB

# Start the database
docker run --rm -p 5432:5432 -e "POSTGRES_PASSWORD=postgres" --name pg postgres:14

# optional psql (other terminal) 
docker exec -it -u postgres pg psql

License - MIT OR Apache-2.0