Today I add persistence with JSON to my Rust Shopping Cart website.
GitHub: https://github.com/unconv/rustcart
Part 3: • Implementing Sessions in Rust
Part 1: • Rust Shopping Cart (Web Development i...
00:00 Intro & Recap
00:58 Create Add to Cart form
05:05 Refactor shopping cart page
07:25 Reading the request body
12:25 Parsing POST data
15:34 POST data validation
25:19 Installing Serde crate
29:00 Converting ShoppingCart to JSON
33:28 Saving cart contents to a JSON file
38:29 URL decoding in Rust
43:06 Fixing special character encoding
46:47 Outro
Watch video Shopping Cart in Rust, Part 2: Serializing Cart with Serde & Adding Persistence online without registration, duration hours minute second in high quality. This video was added by user Unconventional Coding 18 April 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 146 once and liked it 8 people.