Giter Site home page Giter Site logo

fengweijp / explorer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from keen/explorer

0.0 2.0 0.0 113.47 MB

Data Explorer by Keen IO - point-and-click interface for analyzing and visualizing event data.

Home Page: http://keen.github.io/explorer/

License: MIT License

JavaScript 83.30% CSS 16.36% HTML 0.34%

explorer's Introduction

Keen Explorer

Install

npm install keen-explorer --save

Example

import KeenExplorer from 'keen-explorer';

const myExplorer = new KeenExplorer({
  container: '#keen-explorer-html-element', // querySelector
  persistence: true, // optional: ability to save queries etc

  keenAnalysisOptions: {
    // configuration for KeenAnalysis
    // https://github.com/keen/keen-analysis.js
    projectId: 'PROJECT_ID',
    masterKey: 'MASTER_KEY'
  },

  keenDatavizOptions: {
    // OPTIONAL configuration for KeenDataviz
    // https://github.com/keen/keen-dataviz.js
  }
});

Check out the demo here. The Keen IO Explorer is an open source point-and-click interface for querying and visualizing your event data. It's maintained by the team at Keen IO.

Install from CDN

<head>
  <!-- Dependencies -->
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

  <!-- Explorer Assets -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/keen-explorer@5/dist/keen-explorer.min.css">
  <script crossorigin src="https://cdn.jsdelivr.net/npm/keen-explorer@5/dist/keen-explorer.bundle.min.js"></script>
</head>

<body>
  <div id="keen-explorer"></div>
  <script>
  const myExplorer = new KeenExplorer({
    container: '#keen-explorer-html-element', // querySelector
    persistence: true, // optional: ability to save queries etc

    keenAnalysisOptions: {
      // configuration for KeenAnalysis
      // https://github.com/keen/keen-analysis.js
      projectId: 'PROJECT_ID',
      masterKey: 'MASTER_KEY'
    },

    keenDatavizOptions: {
      // OPTIONAL configuration for KeenDataviz
      // https://github.com/keen/keen-dataviz.js
    }
  });
  </script>
</body>

Get your project ID & API keys

If you haven’t done so already, login to Keen IO to create a project for your app. You'll need a Keen IO account to create a project. The Project ID and API Keys are available on the Project Overview page. You will need these for the next steps.

Custom builds of the Explorer

  1. Clone our repo git clone https://github.com/keen/explorer.git
  2. Configure the Keen.js client in the demo file at test/demo/demo-config.js with your project ID and Keen IO API keys.
  3. Install the dependencies with npm install.
  4. Run the development script with npm run start.
  5. You can now view the demo locally at http://localhost:8080/ or your specified port.

Building the project:

The project is built with Webpack.

  • Run npm run build from the root directory of the project to build ALL files, including the minified versions for production use.

Testing

Run Unit Tests

  • Run npm run test to run all the tests. Currently there are only unit tests.

FAQ

Is this open source Keen Explorer different than the one on keen.io? Nope! We have recently moved all our development on the Keen Explorer to this open source version.

I have questions about using the project! Where/who do I ask? If you have any questions about using this project, Explorer feel free to contact us anytime at [email protected].

Contributing:

To contribute to this project:

  • Fork the repo.
  • Submit a Pull Request with test coverage.
  • Follow our PR template, which includes the following sections:
## What does this PR do? How does it affect users?

## How should this be tested?

Step through the code line by line. Things to keep in mind as you review:
 - Are there any edge cases not covered by this code?
 - Does this code follow conventions (naming, formatting, modularization, etc) where applicable?

Fetch the branch and/or deploy to staging to test the following:

- [ ] Does the code compile without warnings (check shell, console)?
- [ ] Do all tests pass?
- [ ] Does the UI, pixel by pixel, look exactly as expected (check various screen sizes, including mobile)?
- [ ] If the feature makes requests from the browser, inspect them in the Web Inspector. Do they look as expected (parameters, headers, etc)?
- [ ] If the feature sends data to Keen, is the data visible in the project if you run an extraction (include link to collection/query)?
- [ ] If the feature saves data to a database, can you confirm the data is indeed created in the database?

## Related tickets?

Screenshots encouraged! Would an animated GIF be more informative than a screenshot? Then we recommend Recordit.

Tech used in this project

These are the major technologies used in the project.

  • ReactJS for UI Components & input handling.
  • Flux for help managing the data model layer.
  • Bootstrap for our CSS framework.
  • NPM for dependency management.

explorer's People

Contributors

aroc avatar dustinlarimer avatar sfalkoff avatar adamkasprowicz avatar joannecheng avatar tbarn avatar lexicography avatar anthonymayer avatar jacklittleton avatar stof avatar garethtdavies avatar jjb avatar kemaldaggen avatar c-lillini avatar commuterjoy avatar

Watchers

James Cloos avatar  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.