Skip to content

Astro

Build a site around public content, then add browser interaction or a server handler only where the site needs it.

Visit Astro

What can you publish with Astro?

Astro can turn a collection of similarly structured content into pages. A class listing can reuse one layout for every class, with the title, description and schedule supplied by each entry.

If the information is loaded during the build, a content change needs a new build and publish before visitors see it. Astro also supports loading some content on request when it needs to be fresher.

Does an interactive button save a booking?

Astro can add browser code for an interactive part of a page, such as a class filter. Saving a booking needs a handler that receives the request and a place that keeps the record.

You can connect a separate form service. If you use Astro’s own server action from a plain HTML form, the form page needs to render on demand. The builder must still check who can act, whether a seat is available and whether a retry should create a new record.

What does the host have to run?

A static Astro build produces files the host can serve. If the site needs pages or a handler to run when a visitor makes a request, choose an adapter and a host that can run that code.

The framework has an MIT license. Hosting, a separate content service and a booking database can each have their own costs. Keep your project files. When moving a site, check which content is in the project and which records or media need their own export.

How can you test the boundary on paper?

Draw a public class page and a reservation form. Use one fictional class with one remaining seat, and write down what changes when the visitor opens each part.

  1. Open the public page
    Mark which facts could be generated before the site is published. If the instructor changes, write when that edit becomes visible.
  2. Follow one request
    Trace one booking from the form to the handler and then to the saved record. Circle the part that needs to run after the visitor submits. Mark what the visitor should see if the slot is already taken.