codeharmonics / algolia-1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Technical Test

Hi there đź‘‹!

This is what I've made from the technical assignment I was asked to make. If you have any questions or feedback, please let me know.

Deliverables

1. Indexing

In order to run the indexing assignment on your local machine, please make sure your machine has the following software installed:

Open the root of this project in your terminal, and install all composer dependencies:

$ composer install

To run the unit test defined for the project, run:

 $ php vendor/bin/phpunit

Open the create-records file in your favorite editor, and replace the values of the $appId and $apiKey variables to contain your own app ID and API key.

To create the indices for the documentation pages, run:

 $ php create-records

This will create an index called devin_documentation for easy lookup in your account.

I chose to create the indices through a command instead of (for example) a webpage to keep it easier, since you are already in the terminal to run the commands listed above.

All the code that is used to generate the index, can be found in the src folder.

2. Search front-end

Open the assets/search.js file in your favorite editor, and change the appId and apiKey variables at the top of the file to contain your own app ID and search-only API key.

To see the search implementation using the records created in the first step, just open the index.html file in your browser. In order for it to work, you do need a working internet connection.

3. Write a tutorial about step 1

The tutorial can be found in tutorial.md.


I really enjoyed the assignment, and hope you are as happy with the result as I am!

Cheers,

Devin.

About


Languages

Language:PHP 68.4%Language:HTML 24.0%Language:JavaScript 7.4%Language:CSS 0.2%