GithubHelp home page GithubHelp logo

isabella232 / dashboard-react-google-maps Goto Github PK

View Code? Open in Web Editor NEW

This project forked from splunk/dashboard-react-google-maps

0.0 0.0 0.0 131.94 MB

Learn how to include a 3rd party react component into a Splunk Dashboard

License: Apache License 2.0

JavaScript 75.97% HTML 24.03%

dashboard-react-google-maps's Introduction

Dashboard Tutorial 3

In the third installment of the Splunk Dashboard tutorials, we cover how to use public 3rd party react packages in Splunk Dashboards. This projects uses react-google maps, a package that works with the Google Map Javascript API to render a map as part of a React component.

Be sure to check out tutorial.md for a step by step guide on how to build this project!

react-google-maps NPM: https://www.npmjs.com/package/react-google-maps

This project is also based on another Splunker's project, showcasing how you can go a step further to add some interactive elements and get more data from click events on a Google Map. You can check out that project here: https://github.com/splunk/supply-chain-tracking

License Notice

Copyright 2021 Splunk, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

  https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contributing to DashboardTutorial3

Overview

The project contains a variety of packages that are published and versioned collectively. Each package lives in its own directory in the /packages directory. Each package is self contained, and defines its dependencies in a package.json file.

We use Yarn Workspaces and Lerna for managing and publishing multiple packages in the same repository.

Getting Started

  1. Clone the repo.
  2. Install yarn (>= 1.2) if you haven't already: npm install --global yarn.
  3. Run the setup task: yarn run setup.

After this step, the following tasks will be available:

  • start – Run the start task for each project
  • build – Create a production bundle for all projects
  • test – Run unit tests for each project
  • lint – Run JS and CSS linters for each project
  • format – Run prettier to auto-format *.js, *.jsx and *.css files. This command will overwrite files without asking, format:verify won't.

Running yarn run setup once is required to enable all other tasks. The command might take a few minutes to finish.

To link the app to your own local Splunk instance, you can do so by setting up the SPLUNK_HOME variable to your Splunk application directory. And then in the Splunk App directory of this repo, run yarn run link:app

Developer Scripts

Commands run from the root directory will be applied to all packages. This is handy when working on multiple packages simultaneously. Commands can also be run from individual packages. This may be better for performance and reporting when only working on a single package. All of the packages have similar developer scripts, but not all scripts are implemented for every package. See the package.json of the package in question to see which scripts are available there.

For more granular control of development scripts, consider using Lerna directly.

Code Formatting

DashboardTutorial3 uses prettier to ensure consistent code formatting. It is recommended to add a prettier plugin to your editor/ide.

dashboard-react-google-maps's People

Contributors

cbarker-splunk avatar jdillman-splunk avatar nhaq-splunk avatar petey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.