MEAN Seed
You can clone the code for this as follows:
git clone https://github.com/amnotafraid/MeanSeed.git
While I was learning, I worked through several tutorials. One tutorial that formed the basis for my development was this one by J. Cole Morrison. He separated the client part, or the Angular part, from the server part, or the Node and Express part.
I have used the code that I developed in this tutorial as a beginning point for all my MEAN stack applications. Here is a git repository of that foundation, which I call MeanSeed: https://github.com/amnotafraid/MeanSeed.git.
If you want to run this code on an AWS EC2, you can follow the directions in one of the Hosting on... chapters.
If you have Node, Mongo, Bower, Compass, and Git installed on a Mac OSX computer, you can deploy the MeanSeed application as follows. These directions should work for a Windows environment with some modifications.
First, clone the MeanSeed code. In the directory where you want the root, do a git clone. It will create a MeanSeed directory and get all the code inside that directory:
git clone https://github.com/amnotafraid/MeanSeed.git
In the MeanSeed directory, you want a directory structure for your data that looks like this:
└─data
├── db
└── logs
You can get that by going inside the MeanSeed directory and typing:
mkdir -p data/db && mkdir data/logs
In the MeanSeed/client directory, install the software needed like this:
npm install
bower install jquery
In the MeanSeed/server directory:
npm install
In the MeanSeed directory, start mongo with the following command:
mongod --dbpath data/db/ --logpath data/logs/mongodb.log --logappend
Start the software in the client directory, MeanSeed/client:
grunt serve
This should open a browser at localhost:9000, but you can close it because you don't need it. Start the software in the server directory, MeanSeed/server:
npm test
Open up a browser at http://localhost:3000. You should see your app: