This repo contains the source code for the Buttercup Games App, a customized Single Page Application leveraging Splunk's platform and libraries. It was demoed in the "Building Applications with Splunk UI and React Visualizations" developer talk at .conf 2019.
To build this app we used 3 JavaScript packages published by Splunk:
This package exposes UI components such as buttons, modals, a table
This package exposes React components to render a dashboard based on a dashboard definition.
This package exposes Splunk's visualizations as React components
Each of the packages can be installed via the public npmjs registry.
Use npm install
or yarn
to install the dependencies. Then run npm run start
or yarn start
to start the application. It will host the application on http://localhost:3000/
The app's entry point is at src/App.js
.
In this file we import the DataModal
to show additional context in a modal, and DashboardCore
to render the main dashboard view.
This project was bootstrapped with Create React App.
In the project directory, you can run:
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.
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.
Dashboard Team - [email protected]
Visualization Team - [email protected]