lighthouse.js/README.md

65 lines
2.5 KiB
Markdown
Raw Normal View History

# Lighthouse - A lightning fast search for the LBRY blockchain
2018-04-19 22:53:10 +02:00
2018-07-25 19:38:21 +02:00
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/c73f0c5eba1f4389894d0a0fdd31486f)](https://app.codacy.com/app/fillerix/lighthouse?utm_source=github.com&utm_medium=referral&utm_content=lbryio/lighthouse&utm_campaign=badger)
2018-10-27 08:52:44 +02:00
[![MIT licensed](https://img.shields.io/dub/l/vibe-d.svg?style=flat)](https://github.com/lbryio/lighthouse/blob/master/LICENSE)
2018-07-25 19:38:21 +02:00
2018-04-19 22:53:10 +02:00
Lighthouse is a lightning-fast advanced search engine API for publications on the lbrycrd with autocomplete capabilities.
2019-07-08 20:00:10 +02:00
The official lighthouse instance is live at https://lighthouse.lbry.com
### What does Lighthouse consist of?
2018-04-19 22:53:10 +02:00
2019-11-01 00:52:15 +01:00
1. Elasticsearch as a backend database server.
2018-04-19 22:53:10 +02:00
2. LBRYimport, an importer that imports the claims into the Elasticsearch database.
3. Lighthouse API server, which serves the API and does all calculations about what to send to the end user.
### API Documentation / Usage example
To make a simple search by string:
```
2019-07-08 20:00:10 +02:00
https://lighthouse.lbry.com/search?s=stringtosearch
```
To get autocomplete suggestions:
```
2019-07-08 20:00:10 +02:00
https://lighthouse.lbry.com/autocomplete?s=stringtocomp
```
2017-10-10 14:42:42 +02:00
[The full API documentation](https://lbryio.github.io/lighthouse/)
## Installation
### Prerequisites
2018-10-30 09:22:24 +01:00
* [Node v8](https://nodejs.org/en/download/)
* [Yarn](https://yarnpkg.com/en/docs/install)
* [Elasticsearch](https://www.elastic.co/downloads/elasticsearch)
>To get started you should clone the git:
```
git clone https://github.com/lbryio/lighthouse
```
2017-12-19 22:41:11 +01:00
>Make sure elasticsearch is running and run (from the lighthouse dir):
```
./gendb.sh
```
>Install dependencies:
```
2019-07-08 20:00:10 +02:00
npm run install --production=false
```
>Build and run Lighthouse:
```
2019-07-08 20:00:10 +02:00
npm run prod
```
2019-11-01 00:52:15 +01:00
>You are now up and running! You can connect to lighthouse at http://localhost:50005, API documentation is [here](https://lbryio.github.io/lighthouse/).
Lighthouse will continue syncing in the background. It usually takes ~15 minutes before all claims are up to date in the database.
## Contributing
2019-07-08 20:00:10 +02:00
Contributions to this project are welcome, encouraged, and compensated. For more details, see [lbry.com/faq/contributing](https://lbry.com/faq/contributing)
## License
This project is MIT Licensed © [LBRYio, Filip Nyquist](https://github.com/lbryio)
## Security
2019-07-08 20:00:10 +02:00
We take security seriously. Please contact security@lbry.com regarding any security issues. Our PGP key is [here](https://keybase.io/lbry/key.asc) if you need it.
## Contact
2019-07-08 20:00:10 +02:00
The primary contact for this project is [@tiger5226](https://github.com/tiger5226) (beamer@lbry.com)