Installation
Get your Astro project started with Astro Church.
Prerequisites
Section titled “Prerequisites”- Node.js: v18.20.8 or v20.3.0, v22.0.0 or higher. (v19 and v21 are not supported.)
- Package Manager: npm, yarn, or pnpm
Option 1: Create New Project
Section titled “Option 1: Create New Project”Best for starting fresh with a clean git history.
npm create astro@latest -- --template tmykkanen/astro-churchpnpm create astro@latest --template tmykkanen/astro-churchyarn create astro --template tmykkanen/astro-churchOption 2: Fork Repository
Section titled “Option 2: Fork Repository”Best for contributing to the theme, theme development, or if you want to track upstream changes via git.
-
Fork on the Web: Click the “Fork” button on the repository’s page in your browser.
-
Clone your fork:
Terminal window git clone https://github.com/YOUR-USERNAME/repository-name.git -
Add the Original as “Upstream”: To keep your fork updated with the original project, you need to link it manually:
Terminal window git remote add upstream https://github.com/tmykkanen/astro-church.git
Initial Setup
Section titled “Initial Setup”-
Copy the environment example file:
Terminal window cp .env.example .env -
Edit
.envwith your information. See Setting Up the Events Page and Setting Up the Subscribe Form for more info:RESEND_API_KEY=""RESEND_SEGMENT_ID=""PUBLIC_GOOGLE_CALENDAR_API_KEY=""PUBLIC_GOOGLE_CALENDAR_ID="" -
Start the development server:
Terminal window npm run devTerminal window pnpm run devTerminal window yarn run dev