This repo contains the backend of https://github.com/algolia/tools.
⚠️ While being functional/stable and used daily, these tools are not part of the Algolia product offering and need to be used with caution. We highly encourage to use them only on non-production data
This repo is a laravel application that allows to run the following feature:
- Algolia Oauth proxy (not public yet, so can only be used by algolia employees)
- State management for metaparams
- Tests management for relevance testing
Install dependencies
Note that version 7.1 is required, which is a legacy version of PHP. These instructions are specific to MacOS. For other operating systems, please refer to their individual documentation for the relevant tools.
brew install shivammathur/php/[email protected]
Make sure to add php 7.1 to your path
echo 'export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/opt/homebrew/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc
echo 'export LDFLAGS="-L/opt/homebrew/opt/[email protected]/lib"' >> ~/.zshrc
echo 'export CPPFLAGS="-I/opt/homebrew/opt/[email protected]/include"' >> ~/.zshrc
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" ✘ INT
php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Make sure to move composer to a directory in your PATH
mv composer.phar /usr/local/bin/composer
And then to get the dependencies:
composer update
composer install
Create database table:
php artisan migrate
To run locally the recommended way is to use Valet that will take care of serving the laravel app and providing a local domain.
composer global require laravel/valet:^2.1
echo 'export PATH="~/.composer/vendor/bin:$PATH"' >> ~/.zshrc
valet use [email protected]
valet install
For any question/issue/proposal, you can open a github issue Need help? You can open a GitHub issue.
If you want to contribute please feel free to submit pull requests. If you have a feature request please open an issue.
InstantSearch iOS is Apache 2.0 licensed