Featured

Rust Programming Exercises: Markdown Blog with Tide



Published
In this video we create our own markdown based blog in Rust with the Tide web framework. We explore each of the necessary minimal dependencies to get our project working including: an async runtime (async-std), markdown parsing (pulldown-cmark), converting into json objects (serde, serde-json), working with http types like Request/Response/Status Codes/Body (http-types), the http protocol layer used by tide (async-h1), rendering templates with handlebars. We also look at client side dependencies such as the parcel build tooling, tailwind css and typography, postcss, and highlight.js for code syntax highlighting. I go over each dependency in brief detail, how the tide framework is put together as we explore what it supports and how we might build our own web framework using similar concepts and single purpose minimal dependencies. By the end of this you should be able to use these concepts to build any number of simple web applications.

↠ Write-up:
Blog Post: https://nyxtom.dev/2022/06/26/tide/

↠ References:
http-rs/tide: https://docs.rs/tide
http-rs/async-h1: https://docs.rs/async-h1
http-types: https://docs.rs/http-types
pulldown-cmark: https://docs.rs/pulldown-cmark
async-std: https://docs.rs/async-std
async-std book: https://book.async.rs/
tailwindcss: https://tailwindcss.com/
parcel: https://parceljs.org/
highlight.js: https://highlightjs.org/
serde: https://docs.rs/serde
handlebars: https://docs.rs/handlebars
routefinder: https://docs.rs/routefinder

↠ Dotfiles: https://github.com/nyxtom/dotfiles
↠ Twitter: @nyxtom https://twitter.com/nyxtom
↠ Channel: https://www.youtube.com/c/nyxtom

Cheers!
Category
Web design
Be the first to comment