Skip to content

Commit

Permalink
Added time service
Browse files Browse the repository at this point in the history
  • Loading branch information
bbossola committed Sep 5, 2015
1 parent c3aff59 commit 6119f28
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions time/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "time-microservice",
"author": "Bruno Bossola",
"private": true,
"dependencies": {
"express": "^4.13.3"
}
}
12 changes: 12 additions & 0 deletions time/time.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var express = require("express");  
var http = require('http');
var app = express();  

app.get("/", function(request, response) {  
var now = new Date();
    response.json({ time: now.toString() });
});                                         

app.listen(3002, function() {                       
console.log("Hello service started on port 3002");
});

0 comments on commit 6119f28

Please sign in to comment.