diff --git a/README.md b/README.md index 301c768ba..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) 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 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 diff --git a/package.json b/package.json index 4284578e2..509d19e2e 100644 --- a/package.json +++ b/package.json @@ -10,5 +10,8 @@ "morgan" : "~1.1.1", "body-parser" : "~1.4.3", "method-override" : "~2.1.1" + }, + "engines": { + "node": "0.10.x" } }