Skip to content

Commit

Permalink
Assignment outmoded#1
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelryancaputo committed Mar 15, 2015
1 parent 579bbb8 commit 55de18e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.idea
16 changes: 16 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
var Hapi = require('hapi');
var server = new Hapi.Server();
var pkg = require('../package.json');
server.connection({ port: 8000 });

server.route({
method: 'GET',
path: '/version',
handler: function (request, reply) {
reply({ version: pkg.version });
}
});

server.start(function () {
console.log('Server version: ' + pkg.version + '. Port: ' + server.info.port + '.');
});
14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "hueniversity",
"version": "0.0.1",
"description": "hueniversity solution",
"main": "lib/index.js",
"dependencies": {
"hapi": "^8.4.0"
},
"devDependencies": {},
"scripts": {},
"author": "Michael Caputo",
"license": "ISC",
"homepage": "https://github.com/michaelryancaputo/hueniversity"
}

0 comments on commit 55de18e

Please sign in to comment.