Skip to content

Latest commit

 

History

History
70 lines (51 loc) · 1.85 KB

File metadata and controls

70 lines (51 loc) · 1.85 KB

Getting Started

Set up the project and run it locally. This page is about environment setup. For how the code is organized, see architecture.md; for making content changes, see the Contributing Guide.

Table of Contents

Overview

  • Live site: https://mpslab-asu.github.io
  • Framework: Astro 5 (static output) with React islands and Tailwind CSS
  • Search: Fuse.js for publications, Pagefind for site-wide search
  • Content: Markdown collections in src/content/ plus data files in src/data/

Prerequisites

  • Node.js v20 or newer
  • npm
  • Git
  • (Optional) Docker / Docker Compose

Run Locally (Node.js)

npm install
npm run dev

Open http://localhost:4321. The dev server hot-reloads on save.

Run Locally (Docker)

docker compose up

Open http://localhost:4321. Stop with:

docker compose down

Build and Preview

npm run build    # type-check, static build to dist/, generate search index
npm run preview  # serve the built output locally

Run npm run build before opening a pull request — it validates all content against the schemas. Site-wide (Pagefind) search only works against a build, so use npm run build && npm run preview to test search locally.

Next Steps