The source code for the application in my book Getting MEAN.
This is the code for the sample 'Loc8r' application that is built through the course of my book Getting MEAN.
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:
masterChapter 3 start: A blank Express 4.9.0 project
chapter-03Chapter 3 end: Creating and setting up a MEAN project
chapter-04-viewsChapter 4 mid-point: The data is hard coded into views
chapter-04Chapter 4 end: Building a static site with Node.js and Express
chapter-05Chapter 5: Building a data model with MongoDB and Mongoose
chapter-06Chapter 6: Writing a REST API: Exposing your MongoDB database to the application
chapter-07Chapter 7: Consuming a REST API: Using an API from inside Express
chapter-08Chapter 8: Adding Angular components to an Express application
chapter-09Chapter 9: Building a Single Page Application with Angular: Foundations
chapter-10Chapter 10: Building a Single Page Application with Angular: The next level
chapter-11Chapter 11: Authenticating users, managing sessions and securing APIs
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: