From ebcb12ec68ae96e6c7ae150d50f19b451f9ba7be Mon Sep 17 00:00:00 2001 From: slightlycyborg Date: Thu, 15 Oct 2015 09:27:22 -0400 Subject: [PATCH] readme --- README.md | 5 +++-- app/routes.js | 6 +----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 301c768ba..1f1dba2ce 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,9 @@ Node provides the RESTful API. Angular provides the frontend and accesses the AP 1. Clone the repository: `git clone git@github.com:scotch-io/node-todo` 2. Install the application: `npm install` -3. Start the server: `node server.js` -4. View in browser at `http://localhost:8080` +3. Make sure mongodb is accessable at `http://localhost:27017` +4. Start the server: `node server.js` +5. View in browser at `http://localhost:2020` ## Tutorial Series diff --git a/app/routes.js b/app/routes.js index f149b38bd..fc4396cdd 100644 --- a/app/routes.js +++ b/app/routes.js @@ -70,16 +70,12 @@ module.exports = function(app) { }); - app.get('/api/old', function(req, res) { + app.get('/api/completed', function(req, res) { //res.sendfile('./public/old.html'); getOldTodos(res); }); - app.get('/old', function(req, res) { - res.sendfile('./public/old.html'); // load the view file (angular will handle the page changes on the front-end) - }); - // application ------------------------------------------------------------- app.get('*', function(req, res) { res.sendfile('./public/index.html'); // load the view file (angular will handle the page changes on the front-end)