var Connection = require('tedious').Connection;
// Very important that the password never appears in git
var config = {
  userName: "oxfordCSteam11Y16",
  password: process.env.BTP_PASSWORD,
  server: "bandtothepoledb.database.windows.net",
  options: {
    encrypt: true,
    database: "bandtothepoledb"
  }
};

var connection = new Connection(config);
connection.on('connect', function(err) {
  console.log(`connect: ${JSON.stringify(err, null, "  ")}`);
});
connection.on('errorMessage', function(err) {
  console.log(`errorMessage: ${JSON.stringify(err, null, "  ")}`)
});
connection.on('error', function(err) {
  console.log(`error: ${JSON.stringify(err, null, "  ")}`);
});
var express = require('express');
var app = express()

var Connection = require('tedious').Connection;
// Very important that the password never appears in git
var config = {
  userName: "oxfordCSteam11Y16",
  password: process.env.BTP_PASSWORD,
  server: "bandtothepoledb.database.windows.net",
  options: {
    encrypt: true,
    database: "bandtothepoledb"
  }
};

var connection = new Connection(config);
connection.on('connect', function(err) {
  console.log(`connect: ${JSON.stringify(err, null, "  ")}`);
  var port = process.env.PORT || 1337;
  app.get('/', function (req, res) {
    res.send("Hello, world!");
  });
  app.listen(port, function () {
    console.log(`Listening on port ${port}`);
  });
});
connection.on('errorMessage', function(err) {
  console.log(`errorMessage: ${JSON.stringify(err, null, "  ")}`)
});
connection.on('error', function(err) {
  console.log(`error: ${JSON.stringify(err, null, "  ")}`);
});
Add Hello, world with Express
Add Hello, world with Express
