Quickstart
This guide will help you set up the Lake Ozark Christian Church website on your local development environment and make your first changes.Prerequisites
Before you begin, ensure you have the following installed:- Node.js 18 or higher (check with
node --version) - npm or bun package manager
- Git for cloning the repository
- A code editor (VS Code recommended)
This project uses Astro 5 with server-side rendering. Some features like location detection and API routes require the dev server to be running.
Installation
Follow these steps to get the site running locally:Install dependencies
Install all required dependencies using npm or bun:This will install all dependencies listed in
package.json, including:- Astro 5.16.4
- React 18.3.1
- Tailwind CSS 3.4.17
- Vercel adapter
- YouTube integration
- Sentry monitoring
Start the development server
Run the development server:The server will start at
http://localhost:4321Open in your browser
Navigate to http://localhost:4321 to see the site running locally.You should see the Lake Ozark Christian Church homepage with all components loaded.
Available commands
Here are all the npm commands available in this project:| Command | Action |
|---|---|
npm run dev | Starts local dev server at localhost:4321 |
npm start | Alternative command to start dev server |
npm run build | Builds the production site to ./dist/ |
npm run preview | Preview the built site locally before deploying |
npm run astro | Run Astro CLI commands (add, check, etc.) |
npm run astro -- --help | Get help with the Astro CLI |
Making your first change
Let’s make a simple change to verify everything is working:Find the welcome section
Look for the welcome section in the file. You’ll see Astro component syntax with frontmatter at the top and HTML-like template code below.
Make a change
Try modifying some text in the page. For example, change a heading or paragraph text.
src/pages/index.astro
Creating a new page
Astro uses file-based routing. Creating a new page is as simple as adding a new file tosrc/pages/:
http://localhost:4321/example to see your new page.
Using a component
Let’s add an existing component to your new page:PrayerRequestForm component is now embedded in your page with all its functionality.
Project structure overview
Here’s a quick overview of the main directories:For a detailed explanation of the project structure, see the Project structure documentation.
Building for production
When you’re ready to build for production:./dist/ directory. You can preview the production build locally with:
Deployment
This project is configured for deployment on Vercel using the@astrojs/vercel adapter:
output: 'server' setting enables server-side rendering for API routes and dynamic features.
Next steps
Now that you have the site running locally:Project structure
Learn about the codebase organization and directory structure
Components
Explore the available components and how to use them
Pages
Understand routing and page creation in detail
Styling
Learn about Tailwind CSS and the custom theme