Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/juan-medina/meanexample

mean examples
https://github.com/juan-medina/meanexample

Last synced: 25 days ago
JSON representation

mean examples

Awesome Lists containing this project

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