Skip to content
🔍 Search Engine Client APIs and Discovery Interface Components
TypeScript Other
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
deployment/elasticsearch
packages
.codeclimate.yml
.eslintrc
.gitattributes
.gitignore
.npmrc
Dockerfile-cypress
LICENSE
README.md
build.sh
ci-tests.yml
circle.yml
codecov.yml
lerna.json
netlify.toml
package.json
tsconfig.json

README.md

React Discovery

CircleCI Netlify Status codecov

@react-discovery/configuration

npm (scoped)

@react-discovery/core

npm (scoped)

@react-discovery/components

npm (scoped)

Quick Start

Setup Firebase Project Configuration for Authentication

See Firebase Documents

  • The firebase configuration object is located in:
$ react-discovery-elasticsearch-app/src/config/firebase

Create Environment

  • configure search api host and collection in .env file in elasticsearch-app root
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

    $ cd deployment/elasticsearch
    $ docker-compose up
  • create index mapping

    $ curl -X PUT "localhost:8000/hsp2" -H 'Content-Type: application/json' -d @test-data/hsp_mapping.json
  • create test data set

    $ curl -X PUT "localhost:8000/_bulk" -H 'Content-Type: application/x-ndjson' --data-binary @test-data/test-data-09.txt
  • OR execute

    $ ./build.sh

Build and Start React App

$ npm install
$ lerna bootstrap --hoist
$ lerna run build
$ lerna run start

Continuous Deployment Elasticsearch App

https://react-discovery.netlify.com/

Testing

 $ lerna run test --stream

Solr Support

Checkout solr branch
 $ git checkout solr

Continuous Deployment Solr App

https://solr--react-discovery.netlify.com/

You can’t perform that action at this time.