|
| 1 | +# Meilisearch |
| 2 | + |
| 3 | +## Deploy a Meilisearch instance on Disco |
| 4 | + |
| 5 | +Start by forking the [Meilisearch Disco Sample repo](https://github.com/letsdiscodev/sample-meilisearch) on GitHub. |
| 6 | + |
| 7 | +Login to the [Disco web interface](https://dashboard.disco.cloud/) to see your list of instances. If you don't have an instance yet, follow the instructions to create one. |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | +Click your instance. Then, click "New project" in the upper-right corner. |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | +Next, fill out the form: |
| 16 | + |
| 17 | +- Give this project a name such as `meilisearch` |
| 18 | +- Set the domain name for your Meilisearch instance. This domain should be pointing to your Disco instance (e.g. `meilisearch.example.com`) |
| 19 | +- Select the GitHub repository you forked earlier. If you need to give Disco access to this repository, click the "Manage your GitHub repositories" link. |
| 20 | +- Finally, click "Add New Variable". The name of the variable should be `MEILI_MASTER_KEY` and the value should be a strong key to secure your Meilisearch instance. |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | +Click "Add Project" to create the project. |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | +Your Meilisearch instance will then be deployed. |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +Navigate to your domain name in your browser. You should see the Meilisearch welcome page. |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +## Next Steps |
| 37 | + |
| 38 | +Fetch the API keys for your Meilisearch instance by making a `curl` call to your instance: |
| 39 | + |
| 40 | +```bash |
| 41 | +curl \ |
| 42 | + -X GET 'https://MEILISEARCH_DOMAIN/keys' \ |
| 43 | + -H 'Authorization: Bearer MASTER_KEY' |
| 44 | +``` |
| 45 | + |
| 46 | +Replace `MEILISEARCH_DOMAIN` with your domain name and `MASTER_KEY` with the key you set when creating the project. |
| 47 | + |
| 48 | +You should get back a list of your Meilisearch instance API keys. Using these, you can create and manage your indexes, documents, and settings. |
| 49 | + |
| 50 | + |
0 commit comments