MeiliSearch | Documentation | Slack | Website | FAQ
Where to Watch
Table of Contents:
yarnYou can run a Meilisearch instance locally with the following command:
docker run -it --rm \
-p 7700:7700 \
getmeili/meilisearch:v1.7 \
meilisearch --env="development"
Run the following script in order to create the different indexes and upload the movies documents:
You need to run at least once this command to create the correct indexing settings:
yarn setup:settings
Then run the setup to index the data:
yarn setup
yarn devGo to http://localhost:3000/ and enjoy ! 🎉
You can generate a build of this project with the following command:
yarn buildThe above commands will generate an optimized version of the app, inside the .next folder.
You can then serve it with:
yarn startOr serve it with any web server of your choice.
Example:
serve .nextTo connect to your own Meilisearch instance, two environment variables should be provided:
MEILISEARCH_HOST: the URL of your Meilisearch instanceMEILISEARCH_API_KEY: an API key with at least search rights
An example can be found in the .env.example file. You can either rename this file into .env, or create a new file.
This demo only guarantees the compatibility with the version v1.6 of Meilisearch.
Storybook is a development environment for UI components. It allows you to browse a component library, view the different states of each component, and interactively test components.
yarn storybookTests are implemented using Cypress. To run the tests, first launch a Meilisearch instance, then run:
yarn testEnvironment variables
Environment variables are configured in cypress.config.js:
const { defineConfig } = require('cypress')
module.exports = defineConfig({
// ...
env: {
MEILISEARCH_HOST: 'http://0.0.0.0:7700',
MEILISEARCH_API_KEY: 'masterKey',
}
}