The Mastro Guide – web development simplified.
Are you new to web development? Or perhaps you learned a particular framework, but never the foundations of building on the web? Fear not, the first couple of chapters will show you the basics of modern HTML and CSS: build a website and put it live – all in your browser (or using the command line, if you prefer that).
In later chapters, you’ll statically generate a blog, and implement a to-do list app: once with plain client-side JavaScript, then reactively. In the last third, you’ll run a server with a REST API, learn about caching, and discover some of the design space around different web application architectures.
This guide does not show you everything you’ll ever need to know when creating websites. Instead, it shows you the door to the world of web design, giving you an overview over the landscape, and tells you where to learn more. While the minimal Mastro framework is used for practical examples, the patterns discussed are universal.
Table of Contents
- Intro: Why learn HTML and CSS?
- Setup: GitHub and VS Code for Web
- Start with HTML
- Publish your static website
- Style with CSS
- Client-side vs server-side JavaScript, SPA vs MPA
- Introducing JavaScript
- Server-side components and routing
- A static blog from markdown files
- Third-party packages
- Interactivity with JavaScript in the browser
- URLs, HTTP and servers
- Setup Mastro on the command line
- Deploy server or static site with CI/CD
- Forms and REST APIs
- Bundling, pregenerating assets and caching
- Web application architecture and the write-read-boundary