Skip to content

Getting Started

FlowerCA77 edited this page Sep 21, 2025 · 1 revision

Getting Started

English is default. Chinese version: 入门指南(中文).

This site is built with Astro + Tailwind + React and published to GitHub Pages.

Prerequisites

  • Node.js (LTS or newer)
  • PNPM (the repo pins a version via packageManager in package.json)

Install

  1. Clone the repo FlowerCA77/FlowerCA77.github.io.
  2. Install dependencies:
pnpm install

Run Dev Server

pnpm dev
  • Default port: 4321
  • Hot reload enabled

Build & Preview

pnpm build
pnpm preview
  • Output directory: dist/

Directory Overview

  • src/pages/: Astro file-based routing (home, about, articles, news, announcements, authors, series, tags)
  • src/content/: Markdown/MDX content organized into collections defined in src/content.config.ts
  • src/components/, src/layouts/: Reusable UI and templates
  • src/styles/: Tailwind entry and global styles
  • public/: Static assets copied as-is

Continue to: Project Structure

Clone this wiki locally