|
1 | 1 | # MEAN Stack
|
2 | 2 |
|
3 |
| -MEAN is a boilerplate that provides a nice starting point for MongoDB, Node.js, Express, and AngularJS based applications. |
4 |
| -It is designed to give you quick and organized way to start developing of MEAN based web apps with useful modules like mongoose and passport pre-bundled and configured. |
5 |
| -We mainly try to take care of the connection points between existing popular frameworks and solve common integration problems. |
| 3 | +MEAN is a boilerplate that provides a nice starting point for [MongoDB](http://www.mongodb.org/), [Node.js](http://www.nodejs.org/), Express, and AngularJS based applications. It is designed to give you quick and organized way to start developing of MEAN based web apps with useful modules like mongoose and passport pre-bundled and configured. We mainly try to take care of the connection points between existing popular frameworks and solve common integration problems. |
6 | 4 |
|
7 | 5 | ## Prerequisites
|
8 |
| -* Node.js - Download and Install [Node.js](http://www.nodejs.org/). |
9 |
| -* MongoDB - Download and Install [MongoDB](http://www.mongodb.org/) - Make sure it's running on the default port(27017). |
| 6 | +* Node.js - Download and Install [Node.js](http://www.nodejs.org/download/). You can also follow [this gist](https://gist.github.com/isaacs/579814) for a quick and easy way to install Node.js and npm |
| 7 | +* MongoDB - Download and Install [MongoDB](http://www.mongodb.org/downloads) - Make sure it's running on the default port (27017). |
10 | 8 |
|
11 | 9 | ### Optional (Requirements for Grunt)
|
12 | 10 | * Ruby - Download and Install [Ruby](http://www.ruby-lang.org/)
|
@@ -55,6 +53,16 @@ There are three environments provided by default, __development__, __test__, and
|
55 | 53 | * clientSecret
|
56 | 54 | * callbackURL
|
57 | 55 |
|
| 56 | + To run with a different environment, just specify NODE_ENV as you call grunt: |
| 57 | + |
| 58 | + $ NODE_ENV=test grunt |
| 59 | + |
| 60 | + If you are using node instead of grunt, it is very similar: |
| 61 | + |
| 62 | + $ NODE_ENV=test node server |
| 63 | + |
| 64 | + NOTE: Running Node.js applications in the __production__ environment enables caching, which is disabled by default in all other environments. |
| 65 | + |
58 | 66 | ## Getting Started
|
59 | 67 | We pre-included an article example, check it out:
|
60 | 68 | * [The Model](app/models/article.js) - Where we define our object schema.
|
|
0 commit comments