Coder Social home page Coder Social logo

productdevbook / dev-nuxt-meilisearch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xlanex6/nuxt-meilisearch

0.0 1.0 0.0 1.73 MB

๐Ÿ”Ž Meilisearch module for Nuxt 3

Home Page: https://nuxt-meilisearch.vercel.app

JavaScript 0.97% TypeScript 43.22% Vue 55.82%

dev-nuxt-meilisearch's Introduction

xlanex6/nuxt-meilisearch

Latest Stable Version License Twitter Follow

Nuxt Meilisearch

Integrate Meilisearch fast and hyper-relevant search engine in your Nuxt application.

Read Nuxt Meilisearch documentation.

Features

  • Nuxt 3 integration
  • Auto-imported composables
  • Server-side rendering support
  • Client & server integration of Meilisearch
  • Full TypeScript support
  • Compatible with Instant Meilisearch
  • Vue Algolia InstantSearch components (optional)

Installation

Install nuxt-meilisearch:

# with npm
npm install nuxt-meilisearch

# with yarn
yarn add nuxt-meilisearch

# with pnpm
pnpm add nuxt-meilisearch

Warning

v1.0 introduced a breaking change on the module configuration options.

Then, update your nuxt.config.ts:

export default defineNuxtConfig({
 modules: [
   'nuxt-meilisearch'
 ],
 meilisearch: {
   hostUrl:  '<your_meilisearch_host>', //required
   searchApiKey: '<public_search_api_key>', // required
   adminApiKey: '<admin_api_key>', // optional
   serverSideUsage: true // default: false
})

Usage

This example performs a search in the books index:

<script setup>
const { search, result } = useMeiliSearch('books')

onMounted(async () => {
  await search('harry');
})
</script>

<template>
  <div>
    {{ result }}
  </div>
</template>

Learn more in the Nuxt Meilisearch documentation.

Contributing

Issues and pull requests are welcome. ๐Ÿซถ

Local development

  • Run npm run dev:prepare to generate type stubs.
  • Use npm run dev to start playground in development mode.

Licence

MIT Licence

dev-nuxt-meilisearch's People

Contributors

atinux avatar gleb-svechnikov avatar joewinger avatar miguelgargallo avatar renovate[bot] avatar strift avatar xlanex6 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.