mean examples
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
config
public
.bowerrc
.gitignore
README
bower.json
package.json
server.js

README

#MEAN examples
Work in progress examples for creating a NodeJS / Express / MongoDB RESTFull API with a AngularJS/Boostrap client.

#INSTALL

- Requires
  sudo npm -g install bower
	
- Optional
  sudo npm -g install forever
	
- Get source from git
  git clone https://github.com/cecile/meanexample.git

- Install node modules
  npm install
	
- Install scripts
  bower install
	
#LAUNCH

- via npm
  npm start

- via node
  node server.js
	
- via forever
  forever start server.js
    
- stop via forever
  forever stopall
	
#FILES

- Server Side
| ---------------------- | --------------------- |
| MongoDB configuration  | ./config/db.js        | 
| ---------------------- | --------------------- |
| Node Server            | ./server.js           |
| ---------------------- | --------------------- |
| Express Application    | ./app/routes.js       |
|                        | ./app/api.js          |
| ---------------------- | --------------------- |
| MongoDB JS models      | ./app/models          |
| ---------------------- | --------------------- |
| Node Modules           | ./package.json        |
|                        | ./node_modules        |
| ---------------------- | --------------------- |

- Client Side

| ---------------------- | ------------------------ |
| Bower                  | ./bower.json             |
|                        | ./.bowerrc               |
|                        | ./public/libs            |
| ---------------------- | ------------------------ |	
| Sinple Page HTML       | ./public/index.html      |
| ---------------------- | ------------------------ |
| AngularJS code         | ./public/js/app.js       |
|                        | ./public/js/appRoutes.js |
| ---------------------- | ------------------------ |
| AngularJS Services     | ./public/js/services     |
| ---------------------- | ------------------------ |
| AngularJS Controllers  | ./public/js/controllers  |
| ---------------------- | ------------------------ |
| AngularJS Views        | ./public/views           |
| ---------------------- | ------------------------ |

#REFERENCES
http://scotch.io/bar-talk/setting-up-a-mean-stack-single-page-application
http://scotch.io/tutorials/javascript/build-a-restful-api-using-node-and-express-4