https://github.com/ericalli/daily-algolia-ghost
https://github.com/ericalli/daily-algolia-ghost
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ericalli/daily-algolia-ghost
- Owner: ericalli
- License: mit
- Created: 2023-10-25T23:30:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-25T23:32:21.000Z (over 2 years ago)
- Last Synced: 2024-12-28T02:43:25.981Z (over 1 year ago)
- Language: JavaScript
- Size: 1.75 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ghost Algolia tools
Ghost Algolia tools offers tools to index and fragment Ghost posts to an Algolia index. It consists of two user facing tools:
- `algolia`, which is a CLI tool to batch index the full content of a Ghost install to a defined Algolia index
- `algolia-netlify`, which uses Netlify Functions to listen to Ghost webhooks and add, update, and remove posts to an Algolia index
## Usage
### Algolia Netlify package
You can start using the Algolia Netlify package by clicking on this deplooy button. You can find the detailed install and user instructions over [here](https://github.com/TryGhost/algolia/tree/master/packages/algolia-netlify).
[](https://app.netlify.com/start/deploy?repository=https://github.com/TryGhost/algolia)
### Ghost Algolia CLI
While the Algolia Netlify tool is useful to maintain your search index, the Ghost Algolia CLI is good for the initial indexing of the full post content of a site. See full install and user instructions in the package description [here](https://github.com/TryGhost/algolia/tree/master/packages/algolia).
## Develop
This is a mono repository, managed with [lerna](https://lernajs.io/).
1. `git clone` this repo & `cd` into it as usual
2. `yarn setup` is mapped to `lerna bootstrap`
- installs all external dependencies
- links all internal dependencies
To add a new package to the repo:
- install [slimer](https://github.com/TryGhost/slimer)
- run `slimer new `
## Run
- `yarn dev`
## Test
- `yarn lint` run just eslint
- `yarn test` run lint and tests
## Publish
- `yarn ship` is an alias for `lerna publish`
- Publishes all packages which have changed
- Also updates any packages which depend on changed packages
# Copyright & License
Copyright (c) 2013-2023 Ghost Foundation - Released under the [MIT license](LICENSE).