Appearance
Development Environment Setup
This guide will walk you through setting up a complete development environment for LamaPress using Laravel Herd.
Prerequisites
Before starting, ensure you have:
- macOS (This guide uses Laravel Herd, which is macOS-only. The theme code itself works on any platform, but our development workflow is optimized for macOS.)
- Administrator access (for installing Herd)
- Basic terminal knowledge
Step 1: Install Laravel Herd
Laravel Herd is a native macOS application that provides a lightning-fast local development environment.
Download and Install
- Visit https://herd.laravel.com
- Download the latest version for macOS
- Open the downloaded
.dmgfile - Drag Herd to your Applications folder
- Launch Herd from Applications
- Follow the installation wizard
Activate Herd Pro License
We use Herd Pro for additional features. To activate your license:
- Open 1Password and search for "Herd Pro" or "Laravel Herd"
- Copy the license key from 1Password
- In Herd, go to Settings > License (or click the license icon)
- Paste your license key and activate
Note: If you don't have access to the license in 1Password, ask a team member for access.
Verify Installation
Open Terminal and run:
bash
herd versionYou should see the Herd version number. If not, make sure Herd is running and try again.
Step 2: Install Node.js
LamaPress requires Node.js for the build system. We use Node.js v24 LTS.
Check if Node.js is Installed
bash
node --version
npm --versionInstall Node.js (if needed)
- Visit https://nodejs.org
- Download Node.js v24 LTS
- Run the installer
- Verify installation:
bash
node --version # Should show v24.x.x (LTS)
npm --version # Should show 9.x.x or higherStep 3: Set Up Your WordPress Site
Option A: New WordPress Installation
Create a new site in Herd:
- Open Herd application
- Click "Add Site" or use the
+button - Choose "WordPress" as the site type
- Enter your site name (e.g.,
my-project) - Herd will create the site at
http://my-project.test
Install WordPress:
- Visit
http://my-project.testin your browser - Follow the WordPress installation wizard
- Complete the setup with your preferred credentials
- Visit
Option B: Existing WordPress Installation
- Point Herd to existing WordPress:
- Open Herd application
- Click "Add Site"
- Choose "Existing Site"
- Select your WordPress directory
- Herd will detect and configure it
Step 4: Install LamaPress Theme
Clone or Copy Theme
bash
# Navigate to your WordPress themes directory
cd ~/path/to/wordpress/wp-content/themes
# If cloning from GitHub
git clone https://github.com/lamalamanl/lamapress.git lamapress
# Or if copying from another location
cp -r /path/to/lamapress ./
# Navigate into the theme directory
cd lamapressInstall Dependencies
bash
# Install PHP dependencies (if using Composer)
composer install
# Install Node.js dependencies
npm installStep 5: Configure WordPress
Add Required Constants
Edit your wp-config.php file (usually in the WordPress root directory):
php
// Optional: Google Tag Manager
define('LL_GTM_ID', ''); // e.g., 'GTM-WV2VZWQ'
// Optional: Cookie Consent
define('LL_COOKIE_CONSENT', ''); // 'cookiebot' or 'lamapress'
define('LL_COOKIEBOT_ID', ''); // Required if using Cookiebot
// Optional: Bunny.net Integration
define('LL_BUNNY_API_KEY', '');
define('LL_BUNNY_LIBRARY_ID', '');
define('LL_BUNNY_PULL_ZONE', '');Activate the Theme
- Log in to WordPress admin (
http://your-site.test/wp-admin) - Navigate to Appearance > Themes
- Find "LamaPress" and click Activate
Step 6: Start Development Server
Start Vite Development Server
In your terminal, navigate to the theme directory and run:
bash
npm run devYou should see output like:
VITE v5.x.x ready in xxx ms
➜ Local: http://localhost:5173/
➜ Network: use --host to exposeImportant Notes:
- The Vite server runs on
http://localhost:5173for Hot Module Replacement (HMR) - Do not access your site via
localhost:5173directly - Access your site via your Herd URL (e.g.,
http://your-site.test) - Vite automatically injects the necessary scripts and styles
Verify Everything Works
- Visit your site in the browser (via Herd URL)
- Open browser DevTools (F12 or Cmd+Option+I)
- Check the Console tab for any errors
- Verify that styles are loading (check Network tab)
- Make a small change to a component and verify hot reload works
Step 7: Install Required WordPress Plugins
LamaPress requires (or works best with) these plugins:
Essential Plugins
Advanced Custom Fields Pro - Required for flexible content
- Install via ACF website or your license
- Activate the plugin
Gravity Forms (if using forms)
- Install and activate if your project uses forms
Development Workflow
Daily Development
Start Herd (if not already running)
- Herd runs in the background, but verify it's active
Start Vite dev server:
bashnpm run devAccess your site:
- Use your Herd URL:
http://your-site.test - Make changes to PHP, JavaScript, or SCSS files
- Changes should hot-reload automatically
- Use your Herd URL:
Build for production:
bashnpm run build
File Watching
Vite automatically watches for changes in:
src/js/**/*.js- JavaScript filessrc/scss/**/*.scss- SCSS filescomponents/**/*.js- Component JavaScriptcomponents/**/*.php- PHP files (triggers page reload)
Environment-Specific Configuration
Development
- Vite dev server running
- Hot module replacement enabled
- Source maps enabled
- Unminified assets
Staging (Laravel Forge)
- Built assets (
npm run build) - Minified JavaScript and CSS
- Optimized for performance
- See Deployment Guide for details
Production
- Fully optimized build
- All assets minified
- Caching enabled
- Performance monitoring
Useful Herd Commands
bash
# List all sites
herd list
# Start/stop/restart a site
herd start
herd stop
herd restart
# Open site in browser
herd open <site-name>
# Check PHP version
herd php
# Switch PHP version
herd use php@8.4
# View logs
herd logsAdditional Resources
Related Documentation
- Getting Started Guide - Quick start guide
- Component System - Component development
- Styling System - Styling approach
- Troubleshooting - Common issues
Next Steps:
- Verify everything works in your environment
- Read Getting Started Guide for next steps
- Learn about Component System to start building
- Explore Styling System for design system
Having issues? Check the Troubleshooting Guide or ask the team for help!