/ems-landing-page

Previewer for the data of the Elastic Maps Service

Primary LanguageJavaScript

Elastic Maps Service Landing Page

The Elastic Maps Landing Page is a previewer of the data of the Elastic Maps Service. It allows users to browse the data that is available within EMS.

Development

The page is designed as a single-page application. It loads the root manifest from EMS using a cross-domain call. This is similar to how Kibana retrieves the manifest from EMS.

Prerequisites

yarn is used as the dependency manager and script runner for this project. Ensure both node and yarn are installed on your system.

webpack is used for Javascript transpilation.

grunt is used for creating a distributable package of the app.

Running the page locally

Install dependencies

yarn install

Start the babel compilation and watch task

yarn dev

Keep this running. The javascript/css will be automatically recompiled when files change.

Open the page

Open public/index.html

You can run the page either from the file-system or any web-server.

Packaging

To package the app, run the build script.

yarn build

This script will put the relevant resources of the app in the ./build/release/** folder. It will also zip up the app in the same directory.

If any intermediate tasks break before packaging, such as a javascript linting or compilation failure, the build-script will error out. Fix the errors, and redeploy.