From 548d54a8b7ed0ff5c6a833b3288d970442610d37 Mon Sep 17 00:00:00 2001 From: Jesper Joergensen Date: Mon, 5 May 2014 22:19:22 -0700 Subject: [PATCH 1/7] Extract mongo url to env --- config/database.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/database.js b/config/database.js index ed8735ffa..979786feb 100644 --- a/config/database.js +++ b/config/database.js @@ -1,5 +1,5 @@ module.exports = { // the database url to connect - url : 'mongodb://node:node@mongo.onmodulus.net:27017/uwO3mypu' + url : process.env.MONGOHQ_URL } \ No newline at end of file From d3a930a40df382a0ec0ade8ab7919aa255c0268f Mon Sep 17 00:00:00 2001 From: Jesper Joergensen Date: Mon, 5 May 2014 22:38:41 -0700 Subject: [PATCH 2/7] add app.json --- app.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app.json diff --git a/app.json b/app.json new file mode 100644 index 000000000..8529392ea --- /dev/null +++ b/app.json @@ -0,0 +1,13 @@ +{ + "name": "Node Todo", + "description": "A small todo list app written using Node.js, Angular and MongoDB", + "keywords": [ + "todo", + "node", + "angular", + "mongodb" + ], + "addons": [ + "mongohq" + ] +} \ No newline at end of file From 809910450a9143f680c26510dd13bb6d7e9e7439 Mon Sep 17 00:00:00 2001 From: Jesper Joergensen Date: Mon, 5 May 2014 22:47:17 -0700 Subject: [PATCH 3/7] add repository and node version to package.json --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 0f84bec6d..cc8102eb5 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,15 @@ { "name" : "node-todo", "version" : "0.0.0", + "repository" : "https://github.com/jesperfj/node-todo.git", "description" : "Simple todo application.", "main" : "server.js", "author" : "Scotch", "dependencies" : { "express" : "~3.4.4", "mongoose" : "~3.6.2" + }, + "engines": { + "node": "0.10.x" } } From f2d203c697b8a4ec7734e7f050812b018f0d7b16 Mon Sep 17 00:00:00 2001 From: Jesper Joergensen Date: Mon, 5 May 2014 22:51:05 -0700 Subject: [PATCH 4/7] fix bad package.json format in last commit --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index cc8102eb5..10953e51d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,10 @@ { "name" : "node-todo", "version" : "0.0.0", - "repository" : "https://github.com/jesperfj/node-todo.git", + "repository": { + "type" : "git", + "url" : "https://github.com/jesperfj/node-todo.git" + }, "description" : "Simple todo application.", "main" : "server.js", "author" : "Scotch", From f8b417474ac231f17964cd507f35dce54634e945 Mon Sep 17 00:00:00 2001 From: Jesper Joergensen Date: Sat, 9 Aug 2014 10:46:14 -0700 Subject: [PATCH 5/7] remove repository from package.json --- package.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/package.json b/package.json index b4c5f90c6..509d19e2e 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,6 @@ { "name" : "node-todo", "version" : "0.0.0", - "repository": { - "type" : "git", - "url" : "https://github.com/jesperfj/node-todo.git" - }, "description" : "Simple todo application.", "main" : "server.js", "author" : "Scotch", From 78e7e6cbde454dbdbba3def57f4123fabd679650 Mon Sep 17 00:00:00 2001 From: Jesper Joergensen Date: Sat, 9 Aug 2014 10:55:32 -0700 Subject: [PATCH 6/7] add Heroku button --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 301c768ba..5ddf03428 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ Node provides the RESTful API. Angular provides the frontend and accesses the AP 3. Start the server: `node server.js` 4. View in browser at `http://localhost:8080` +## Deploy to Heroku + +[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy) + ## Tutorial Series This repo corresponds to the Node Todo Tutorial Series on [scotch.io](http://scotch.io) From e9c4e0c5ddbf54bbff71b9953f75ac376dbff7a4 Mon Sep 17 00:00:00 2001 From: Jesper Joergensen Date: Sat, 9 Aug 2014 10:56:18 -0700 Subject: [PATCH 7/7] move button --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5ddf03428..da1603787 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ A Node app built with MongoDB and Angular. For demonstration purposes and a tuto Node provides the RESTful API. Angular provides the frontend and accesses the API. MongoDB stores like a hoarder. +[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy) + ## Requirements - [Node and npm](http://nodejs.org) @@ -15,10 +17,6 @@ Node provides the RESTful API. Angular provides the frontend and accesses the AP 3. Start the server: `node server.js` 4. View in browser at `http://localhost:8080` -## Deploy to Heroku - -[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy) - ## Tutorial Series This repo corresponds to the Node Todo Tutorial Series on [scotch.io](http://scotch.io)