Skip to content

jasontk19/search-ui-layers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

This repo is a rough example/demo of how to use the elastic/search-ui library to quickly stand up a faceted filter based search UI without the use of a database or search API. On the NASA Worldview project all of the data pertaining to our map layers are contained in a single JSON configuration file at deployment time, rather than behind an API. Therefore, in order to build facet filter choices and counts, we needed to process that data within the UI layer. For larger datasets this would not be reccommended but due to the relatively low number of map layer objects (~1000) this approach was simpler than the alternative.

App Screenshot



This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.