Installing
Before installing, ensure that you are using a clean install of Statamic. You can learn how to set this up locally. Skip the step where Statamic asks if you want to install a starterkit. Gaia is packaged as an addon, so we'll install it later.
It's also highly recommended that you use version control (git) before installing Gaia so you can track your changes and roll back if something goes wrong.
1. Installing Gaia
You can install Gaia with Composer:
composer require arrowtide/gaia
This will also install the following dependencies:
2. Running the Install Command
To streamline setup, use Gaia's built-in install command. This will automatically transfer all relevant template files to the correct directories:
php artisan gaia:install
3. Set up search
To get live search up and running we first need to head over to the config/statamic/search.php
and add the following indexes
configuration:
'indexes' => [
'live-search' => [
'driver' => 'local',
'searchables' => ['collection:shop', 'collection:products'],
'fields' => ['title', 'url', 'collections'],
],
],
You can read more about Statamic search indexes here.
4. Start coding
Your setup is complete! You’re now ready to begin crafting your storefront. Happy building!