How it works

Studio Demo is a sample website. Every section reads its data from the Flo public API: change something in the admin and the site shows it on the next load.

  1. Notice at the top of every page

    A temporary message: holiday closure, a new class, maintenance. It shows only while a state is active.

    Public endpoint
    GET /api/public/v1/website-state
  2. Classes

    Name, description, photo, teacher, studio and price of every class.

    See it on the site
    Public endpoint
    GET /api/public/v1/activities
  3. Who teaches

    Name, photo, keywords and classes of every teacher.

    See it on the site
    Public endpoint
    GET /api/public/v1/professionals
  4. Our studios

    The public API has no locations list yet: the site derives them from the classes.

    See it on the site
    Public endpoint
    GET /api/public/v1/activities(derived)
  5. Our rooms

    The “Le nostre sale” gallery: title, description and photos, in the chosen order.

    See it on the site
    Public endpoint
    GET /api/public/v1/galleries/1
  6. Timetable

    The typical week of every class, with time and teacher.

    See it on the site
    Public endpoint
    GET /api/public/v1/activities/schedules
  7. Blog

    Articles, categories and authors from the native Flo blog.

    See it on the site
    Public endpoint
    GET /api/public/v1/articles
  8. Contact form

    The “contact” form: fields, consents and spam check. Submissions land in the Flo archive.

    See it on the site
    Public endpoint
    GET /api/public/v1/forms/contact
  9. Italian and English

    Content languages. Fixed interface text lives in the site.

    Public endpoint
    GET /api/public/v1/localization
  10. API access

    The site’s public token, valid only for its own origin.

    Public endpoint
    —

Locally, one command connects the site to a Flo instance. It mints a public token bound to the site’s address, registers the CORS origin, turns on the feature flags the site needs and writes environment.local.ts, which stays out of git.

flo website link api-docslocal-useflo-net \
  C:/dev/ledges/StudioDemo.WEBSITE --website-port 4210

Both pages read a dedicated Flo gallery when its id is configured. This instance has none, so they show placeholder text.