Check Prerequisites
Before you begin, ensure you have the following installed:
- Node.js >= 22.12.0 (required version specified in package.json)
- npm (comes with Node.js)
- Git for version control
Check your Node.js version with
node --version. If you need to upgrade, visit nodejs.org or use a version manager like nvm.Install Dependencies
Install all required packages using npm:This will install:
- Astro 6 - The static site framework
- React 19 - For interactive components
- Tailwind CSS v4 - Styling framework
- shadcn/ui - UI component primitives
- Lucide React - Icon library
The project uses Tailwind CSS v4 via the Vite plugin (
@tailwindcss/vite), not PostCSS. This is configured automatically during installation.Start Development Server
Launch the development server:The site will be available at
http://localhost:4321Hot Module Replacement
Changes to Astro components, React components, and styles are automatically reflected in the browser
Fast Refresh
React components support Fast Refresh for instant updates without losing component state
VSCode Setup (Recommended)
If you’re using Visual Studio Code, the project includes pre-configured settings:You can start the dev server from the Run and Debug panel (F5).
Recommended Extensions
The.vscode/extensions.json file recommends:- Astro (
astro-build.astro-vscode) - Syntax highlighting, IntelliSense, and diagnostics for Astro files
Launch Configuration
A debug configuration is included in.vscode/launch.json:Additional Recommended Extensions
While not required, these extensions enhance the development experience:- Tailwind CSS IntelliSense - Autocomplete for Tailwind classes
- ESLint - Code quality and consistency
- Prettier - Code formatting
- GitLens - Enhanced Git integration
Project Structure Overview
Once setup is complete, familiarize yourself with the project structure:Path Alias
The project uses@ as an alias for ./src, configured in astro.config.mjs:
Next Steps
Available Commands
Learn about all npm scripts and when to use them
Best Practices
Follow project conventions for components, styling, and data management