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 - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "adonis-algoliasearch",
"version": "0.1.1",
"version": "0.1.2",
"description": "This package is a wrapper on top of [algoliasearch-client-javascript](https://github.com/algolia/algoliasearch-client-javascript).",

@@ -5,0 +5,0 @@ "repository": {

@@ -5,2 +5,5 @@ # Adonis AlgoliaSearch

[![npm version](https://img.shields.io/npm/v/adonis-algoliasearch.svg)](https://www.npmjs.com/package/adonis-algoliasearch)
[![license](https://img.shields.io/github/license/adonis-algoliasearch/algoliasearch.svg)](https://github.com/cmty/adonis-algoliasearch/blob/master/LICENSE.md)
## Getting Started

@@ -15,1 +18,44 @@

Follow instructions that are displayed ([or read them here](https://github.com/cmty/adonis-algoliasearch/blob/master/instructions.md)).
## Configure
Register the provider in `start/app.js`:
```javascript
const providers = [
...
'adonis-algoliasearch/providers/AlgoliaSearchProvider'
]
```
Add a configuration file in `config/algolia.js`. For example:
```javascript
'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
```javascript
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](http://adonisjs.com/) for creating such a great framework.
## License
[MIT](https://github.com/cmty/adonis-algoliasearch/blob/master/LICENSE.md)
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