Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juan-medina/meanexample
mean examples
https://github.com/juan-medina/meanexample
Last synced: 25 days ago
JSON representation
mean examples
- Host: GitHub
- URL: https://github.com/juan-medina/meanexample
- Owner: juan-medina
- Created: 2014-05-10T21:44:22.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-11T09:48:55.000Z (over 10 years ago)
- Last Synced: 2023-04-04T08:25:51.358Z (over 1 year ago)
- Size: 2.51 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
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