Giter VIP home page Giter VIP logo

goan-react's Introduction

goan-react

A React component for viewing GOAN data

Use

npm install --save goan-react

Ensure you have a GOAN server available to connect to. CORS is setup by the server and the client assumes a valid auth token is provided

var Goan = require('goan-react');
...
<Goan 
    endPoint="http://localhost:44889/v1"
    auth="myauthtokenfromtheserver"
    entryType="login"/>

Copy the CSS file (goan.min.css) to your application to get the needed styles for the application and Datepicker.

Bootstrap is assumed but not needed; class names are provided along side the Bootstrap classes for extendability. See the source for their uses.

Props

The following props are used to setup the interface:

  • endPoint - The API endpoint for the GOAN server. For example, https://localhost:44889/v1/ - REQUIRED
  • auth - The auth token for your GOAN instance - REQUIRED
  • entryType - The default entry type to look up - OPTIONAL
  • from - The start date for narrowing a selection down - OPTIONAL
  • to - The end date for narrowing a selection down - OPTIONAL

Docs

Docs are written utilizing YUIDoc, which utilizes a modified form of JSDoc. To generate docs, first ensure you have YUIDoc installed

npm install -g yuidocjs

Once installed, run

yuidoc -e .jsx -o docs .

This will generate a docs subfolder (ignored in .gitignore) in the current directory.

To Do

  • Add unit testing
  • Add toggle for empty dates
  • Improve documentation with JSDoc

goan-react's People

Contributors

kevineaton 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.