0.2.1 • Published 4 years ago

algolite v0.2.1

Weekly downloads
339
License
MIT
Repository
github
Last release
4 years ago

Algolite

An Implementation of Algolia to emulate its REST API on your local machine or CI environments in order to speed up your development and testing cycles.

Installation

npm run -g algolite

Example

$ algolite --help

Usage: algolite [--port <port>] [--path <path>]

An Algolia REST API Implementation

Options:
--help                Display this help message and exit
--port <port>         The port to listen on (default: 9200)
--path <path>         The path to use for the LevelDB store (Your project folder)

Once running any algolia client can be used.

const client = algoliasearch('app-id', 'api-key', {
  protocol: 'http:',
  hosts: {
    read: ['localhost:9200'],
    write: ['localhost:9200']
  }
})

const index = client.initIndex('entries');

await index.addObject({ 
  title: 'Algolia 2019',
  contentType: 'events' 
})

const result = await index.search('Algolia')

Docker Image

docker run --rm -p 9200:9200 --name algolite marconi1992/algolite:0.1.1
0.2.1

4 years ago

0.2.0

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago