Use the recommended node version (.nvmrc
). If you have nvm
then run nvm use
to load the corresponding node version automatically.
It is recommended to use the default configurations for testing the integration with your website first (see the Installing the Algolia Prototype in your website section). Once it's working, proceed with the corresponding configuration from the Algolia dashboard.
Once the Index configuration is ready, proceed to update the code as follows:
- Update your Algolia credentials and indices configurations located within
lib/algoliaConfig.js
. - Update the Autocomplete
productItem
function to match your record's attributes (components/algolia/ProductItem.jsx
. - Update the
hitComponent
function to match your record's attributes (components/algolia/HitComponent.jsx
).
Run npm run dev
to get the local server running. This server will refresh anytime your code is updated.
The code in this repository is provided as-is and is not production-ready. It is intended to be used as a reference only and may contain bugs or other issues. The repository owner is not responsible for any damages or losses that may occur from the use of this code. Use at your own risk.