var gpio = require('onoff').Gpio;
var red = new gpio(16, 'out');
var green = new gpio(12, 'out');
var blue = new gpio(21, 'out');
var button = new gpio(25, 'in', 'both');
var express = require('express');
var app = express();

app.get('/', function(req, res){
  res.send('Hi I changed this again!');
});

app.listen(3000, function(){
  console.log('App listening on port 3000!');
})
// define the callback function
function light(err, state) {
  
  console.log('Button pushed');
  
  // check the state of the button
  // 1 == pressed, 0 == not pressed
  if(state == 1) {
    // turn LED on
    red.writeSync(1);
    gree.writeSync(1);
    blue.writeSync(1);
  } else {
    // turn LED off
    red.writeSync(0);
    gree.writeSync(0);
    blue.writeSync(0)
  }
  
}
 
// pass the callback function to the
// as the first argument to watch()
button.watch(light);

var gpio = require('onoff').Gpio;
var red = new gpio(16, 'out');
var green = new gpio(12, 'out');
var blue = new gpio(21, 'out');
var button = new gpio(25, 'in', 'both');
var express = require('express');
var app = express();

app.get('/', function(req, res){
  res.send('Hi I changed this again!');
});

app.listen(3001, function(){
  console.log('App listening on port 3001!');
})
// define the callback function
function light(err, state) {
  
  console.log('Button pushed');
  
  // check the state of the button
  // 1 == pressed, 0 == not pressed
  if(state == 1) {
    // turn LED on
    red.writeSync(1);
    gree.writeSync(1);
    blue.writeSync(1);
  } else {
    // turn LED off
    red.writeSync(0);
    gree.writeSync(0);
    blue.writeSync(0)
  }
  
}
 
// pass the callback function to the
// as the first argument to watch()
button.watch(light);

Change port for testing purposes
Change port for testing purposes
