This app contains scripts to support new Composable projects.
For full instructions, see Integrating Algolia in the Composable UI docs
The algolia-setup
node application will:
- Create a primary index in Algolia.
- Set up the index configuration (searchable attributes, facets, replicas).
- Populate the indexes with products data.
Create an .env
file in the root of this scripts
app, and set the following variables:
ALGOLIA_APP_ID
ALGOLIA_API_ADMIN_KEY
ALGOLIA_INDEX_NAME
There's a .env.example
file that you can use as a starting template.
- Run the
install
command.
pnpm install
- Run the
algolia-setup
command.
pnpm algolia-setup