Code Monkey home page Code Monkey logo

react-express-dashboard's Introduction

How to Use

  1. git clone https://github.com/Cpruce/OpenDER.git && cd OpenDER/bootstrap_dashboard
  2. Install dependencies: npm install
  3. Build: gulp build
  4. Lauch: gulp run

Public RESTful APIs

/api/registerhh

Type: POST
Parameters: None
Function: Register a new homehub, and return its uid

/api/listhhs

Type: GET
Parameters: None
Function: Get all homehubs

/api/hhinfo

Type: GET
Parameters: ?uid="homehub uid"
Function: Get the detailed homehub information

/api/hhinfo

Type: POST
Parameters: {"uid" : "the homehub uid", "info" : "JSON String of the fileds to be updated, such as price or device list"}
Function: Update the specific homehub information

/api/hhstatus

Type: POST
Parameters: {"uid" : "the homehub uid", "power" : "power consumption", [device status list]}
Function: Send current homehub status to the cloud control

/api/price

Type: GET
Parameters: ?uid="homehub uid"
Function: Get current homehub power price

/api/price

Type: POST
Parameters: {"uid" : "the homehub uid", "price" : current price}
Function: Set the homehub price

MongoDB Collections

  1. homehubs - Store the basic information of a homehub, including uuid, name, longitude, latitude and device list, current power price
  2. hhstatus - Store the homehub status, including uuid, list of device status (power usage, on/off), reporting timestamp

TODOs

  1. Add APIs for internal usage. (Rendering data on dashboard)
  2. Perfomance evaluation
  3. Security assessment

react-express-dashboard's People

Contributors

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