Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
collinalexbell committed Oct 15, 2015
1 parent cc1a29d commit ebcb12e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ Node provides the RESTful API. Angular provides the frontend and accesses the AP

1. Clone the repository: `git clone [email protected]: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

Expand Down
6 changes: 1 addition & 5 deletions app/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ebcb12e

Please sign in to comment.