Skip to content

Commit

Permalink
Initial Hapi server
Browse files Browse the repository at this point in the history
  • Loading branch information
pamo committed Mar 17, 2015
0 parents commit bae8044
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
node_modules/
.DS_Store
9 changes: 9 additions & 0 deletions index.js
@@ -0,0 +1,9 @@

var Hapi = require('hapi');

var server = new Hapi.Server();
server.connection({ port: 3000 });

server.start(function () {
console.log('Server running at:', server.info.uri);
});
27 changes: 27 additions & 0 deletions package.json
@@ -0,0 +1,27 @@
{
"name": "hapi-todo",
"version": "1.0.0",
"description": "A Todo Backend implementation using Hapi.js",
"main": "index.js",
"scripts": {
"test": "test"
},
"repository": {
"type": "git",
"url": "git@github.com:pamo/hapi-todo.git"
},
"keywords": [
"hapi",
"todo",
"javascript"
],
"author": "Pam Ocampo",
"license": "MIT",
"bugs": {
"url": "https://github.com/pamo/hapi-todo/issues"
},
"homepage": "https://github.com/pamo/hapi-todo",
"dependencies": {
"hapi": "^8.4.0"
}
}

0 comments on commit bae8044

Please sign in to comment.