https://github.com/ubleipzig/react-discovery
:mag: Search Engine Client APIs and Discovery Interface Components
https://github.com/ubleipzig/react-discovery
elasticsearch material-ui react react-redux redux solr typescript
Last synced: 3 months ago
JSON representation
:mag: Search Engine Client APIs and Discovery Interface Components
- Host: GitHub
- URL: https://github.com/ubleipzig/react-discovery
- Owner: ubleipzig
- License: apache-2.0
- Created: 2019-06-18T11:58:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-05T09:37:23.000Z (over 6 years ago)
- Last Synced: 2025-04-25T17:47:27.692Z (about 1 year ago)
- Topics: elasticsearch, material-ui, react, react-redux, redux, solr, typescript
- Language: TypeScript
- Homepage:
- Size: 5.38 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## React Discovery
[](https://circleci.com/gh/ubleipzig/react-discovery)
[](https://app.netlify.com/sites/react-discovery/deploys)
[](https://codecov.io/gh/ubleipzig/react-discovery)
#### @react-discovery/configuration
[](https://www.npmjs.com/package/@react-discovery/configuration)
#### @react-discovery/core
[](https://www.npmjs.com/package/@react-discovery/core)
#### @react-discovery/components
[](https://www.npmjs.com/package/@react-discovery/components)
### Quick Start
#### Setup Firebase Project Configuration for Authentication
[See Firebase Documents](https://firebase.google.com/docs/web/setup#config-object)
- The firebase configuration object is located in:
```bash
$ react-discovery-elasticsearch-app/src/config/firebase
```
#### Create Environment
- configure `search api host` and `collection` in `.env` file in elasticsearch-app root
```yaml
REACT_APP_SEARCH_API_HOST=http://localhost:8000/
REACT_APP_SEARCH_API_COLLECTION=hsp2
REACT_APP_FIREBASE_API_KEY=
```
##### Setup Test Elasticsearch Instance
- start docker composition
```bash
$ cd deployment/elasticsearch
$ docker-compose up
```
- create index mapping
```bash
$ curl -X PUT "localhost:8000/hsp2" -H 'Content-Type: application/json' -d @test-data/hsp_mapping.json
```
- create test data set
```bash
$ curl -X PUT "localhost:8000/_bulk" -H 'Content-Type: application/x-ndjson' --data-binary @test-data/test-data-09.txt
```
- OR execute
```bash
$ ./build.sh
```
### Build and Start React App
```bash
$ npm install
$ lerna bootstrap --hoist
$ lerna run build
$ lerna run start
```
### Continuous Deployment Elasticsearch App
https://react-discovery.netlify.com/
### Testing
```bash
$ lerna run test --stream
```
### Solr Support
Checkout solr branch
```bash
$ git checkout solr
```
### Continuous Deployment Solr App
https://solr--react-discovery.netlify.com/