Framework IoT

This framework allow you to control GPIOs of a connceted object. The objective is to create a easy to use system for non developer people who want to try the Internet of Things.

Requirement

Getting started

  1. Clone this repository

    git clone 
    
  2. Install dependencies

    cd project
    npm install
    
  3. Start node server

    nodejs app.js
    
  4. Done ! Go to http://localhost:3000

API

Routes are located in core/routes.js

GET methods

URL Action
/thing Describe all the thing
/thing/gpios List all the thing's GPIOs
/thing/gpio/:slug Describe the GPIO
/thing/gpio/:slug/events List all the GPIO's events
/thing/gpio/:slug/event/:id Describe the event
/thing/gpio/:slug/jobs List all the GPIO's jobs
/thing/gpio/:slug/job/:id Describe the job

POST methods

URL Action
/thing/gpio/add Add a new GPIO to the Thing
/thing/gpio/:slug/event/add Add a new event to a GPIO
/thing/gpio/:slug/job/add Add a new job to a GPIO

PUT methods

URL Action
/thing/gpio/:slug Edit a GPIO
/thing/gpio/:slug/event/:id Edit an event to a GPIO
/thing/gpio/:slug/job/:id Edit a job to a GPIO

DELETE methods

URL Action
/thing/gpio/:slug/delete Remove a GPIO to the Thing
/thing/gpio/:slug/event/:id/delete Remove an event to a GPIO
/thing/gpio/:slug/job/:id/delete Remove a job to a GPIO

ALPHA-1