Skip to content

#2 ‐ Architecture

TrissyG edited this page Jun 20, 2024 · 1 revision

See this section for a description of the website's repository architecture. Make sure to update this documentation whenever changes are made to the website.

Web (Frontend)

  • .netlify: deployment configurations
  • public: permanent graphical and typographical assets (i.e. the organisation's logo).
  • src:
    • /components: the components that make up each page, organised by _________
    • /content: markdown files for blog post content. MDX is integrated to allow for the use of (JS/JSX) components within blog posts.
    • /interfaces: interfaces (i.e. object-oriented models)
    • /layouts: layouts that render components across multiple pages, such as the header and footer of the website.
    • /lib: strapi API connection in the web front-end.
    • /pages: contains the pages of the website and their routes. Astro.js uses file-based routing, so page URLs are built automatically according to the repo's file structure. For example, src/pages/index.astro --> https://wdcc.co.nz/, and src/pages/projects/index.astro --> https://wdcc.co.nz/projects

Strapi (CMS)

Clone this wiki locally