Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Dependency directory
node_modules
node_modules

.env
3 changes: 0 additions & 3 deletions app_server/controllers/locations.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ module.exports.addReview = function(req, res) {
title: 'Review Starcups on Loc8r',
pageHeader: {
title: 'Review Starcups'
},
user: {
displayName: "Simon Holmes"
}
});
};
2 changes: 1 addition & 1 deletion app_server/views/location-review-form.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extends layout
block content
.row.page-header
.col-lg-12
h1 Review Starcups
h1= pageHeader.title
.row
.col-xs-12.col-md-6
form.form-horizontal(action="/location", method="get", role="form")
Expand Down
30 changes: 23 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,35 @@
Getting MEAN application code
=============================
# Getting MEAN application code

This is the code for the sample 'Loc8r' application that is built through the course of my book [Getting MEAN](http://www.manning.com/sholmes/).
This is the code for the sample 'Loc8r' application that is built through the course of my book [Getting MEAN](https://www.manning.com/books/getting-mean-with-mongo-express-angular-and-node).

Getting MEAN is published by Manning[www.manning.com/sholmes/](http://www.manning.com/sholmes/)
Getting MEAN is published by Manning, and teaches readers how to develop web applications end-to-end using the MEAN stack.

There are named branches for the various states of the code throughout the book, so far:
## The application at various stages

There are named branches for the various states of the code throughout the book:

* `master` **Chapter 3 start**: A blank Express 4.9.0 project
* `chapter-03` **Chapter 3 end**: Creating and setting up a MEAN project
* `chapter-04-view` **Chapter 4 mid-point**: The data is hard coded into views
* `chapter-04-views` **Chapter 4 mid-point**: The data is hard coded into views
* `chapter-04` **Chapter 4 end**: Building a static site with Node.js and Express
* `chapter-05` **Chapter 5**: Building a data model with MongoDB and Mongoose
* `chapter-06` **Chapter 6**: Writing a REST API: Exposing your MongoDB database to the application
* `chapter-07` **Chapter 7**: Consuming a REST API: Using an API from inside Express
* `chapter-08` **Chapter 8**: Adding Angular components to an Express application
* `chapter-09` **Chapter 9**: Building a Single Page Application with Angular: Foundations
* `chapter-10` **Chapter 10**: Building a Single Page Application with Angular: The next level
* `chapter-10` **Chapter 10**: Building a Single Page Application with Angular: The next level
* `chapter-11` **Chapter 11**: Authenticating users, managing sessions and securing APIs

## Get the code

To get the code for a specific branch:

`$ git clone -b branch-name https://github.com/simonholmes/getting-MEAN.git`

Then change into the folder the git clone command will create:

`$ cd getting-MEAN`

And finally install the dependencies:

`npm install`