Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

adonis-algoliasearch

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adonis-algoliasearch

This package is a wrapper on top of [algoliasearch-client-javascript](https://github.com/algolia/algoliasearch-client-javascript).

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Adonis AlgoliaSearch

This package is a wrapper on top of algoliasearch-client-javascript.

npm version license

Getting Started

Install the package using the adonis CLI.

> adonis install adonis-algoliasearch

Follow instructions that are displayed (or read them here).

Configure

Register the provider in start/app.js:

const providers = [
  ...
  'adonis-algoliasearch/providers/AlgoliaSearchProvider'
]

Add a configuration file in config/algolia.js. For example:

'use strict'

const Env = use('Env')

module.exports = {
  id: Env.get('ALGOLIA_APP_ID'),
  index: Env.get('ALGOLIA_APP_INDEX'),
  apiKey: Env.get('ALGOLIA_API_KEY')
}

Usage

const AlgoliaSearch = use('AlgoliaSearch')

const index = AlgoliaSearch.index('projects')

The index returned is the client.initIndex of algoliasearch, you have then access to all methods.

Thanks

Special thanks to the creator(s) of AdonisJS for creating such a great framework.

License

MIT

FAQs

Package last updated on 15 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc