A MEAN Stack boilerplate to get you started with building Production Ready software/app.
Video Tutorial: https://www.youtube.com/playlist?list=PLW1OMpQZxu7wstVOlWx2NBFvCZDGkK2CH
- Install NodeJS 6.9.1
npm install -g gulp gulp-cli eslint bower
- First run server, then run client
- Create 2 databases via robomongo
macchiato
andmacchiato_test
- Navigate to server/
npm install
to install project dependenciesnodemon
to run the appnpm test
to run unit tests
.
├── app.js # Main node server folder
├── config
│ └── index.js # Configurations go here
├── controllers
│ └── posts # example controller with it's test files
│ ├── TEST
│ │ └── runner.js
│ └── index.js
├── models
│ └── post # example model
│ └── index.js
├── package.json
├── public # assets folder
│ └── stylesheets
│ └── style.css
├── routes # contains all route endpoints
│ └── endpoints
│ └── index.js
├── test # A configuration for running tests
│ └── utils.js
└── views # Frontend view (not used)
├── error.jade
├── index.jade
└── layout.jade
- Navigate to client-jasmine/ (with jasmine framework) OR client-mocha/ (with mocha framework)
npm install
bower install
gulp serve
to run the appgulp test
to run unit tests
.
├── bower.json
├── gulpfile.js # Main gulp config
├── karma.conf.js # Karma test runner configurations
├── package.json
└── gulp # Contains gulp configurations
└── src
├── app
│ ├── components # Directives
│ │ └── posts
│ │ ├── posts.directive.js
│ │ ├── posts.directive.spec.js
│ │ └── posts.html
│ ├── controllers # Controllers (views)
│ │ ├── edit
│ │ │ ├── edit.controller.js
│ │ │ ├── edit.controller.spec.js
│ │ │ └── edit.html
│ │ ├── main
│ │ │ ├── main.controller.js
│ │ │ ├── main.controller.spec.js
│ │ │ └── main.html
│ │ ├── post
│ │ │ ├── post.controller.js
│ │ │ ├── post.controller.spec.js
│ │ │ └── post.html
│ │ └── publish
│ │ ├── publish.controller.js
│ │ ├── publish.controller.spec.js
│ │ └── publish.html
│ ├── filters # Custom filters
│ │ └── sanitize
│ │ └── sanitize.filter.js
│ ├── index.config.js # Angular configurations
│ ├── index.constants.js # Angular global constants
│ ├── index.module.js # Angular modules
│ ├── index.route.js # Angular routes
│ ├── index.run.js # Main runblock of angular
│ ├── index.scss # Main SASS file
│ ├── partials # Static HTMLs
│ │ ├── nav.html
│ │ └── sidebar.html
│ └── services # Angular services
│ └── posts
│ ├── posts.service.js
│ └── posts.service.spec.js
├── assets # App assets
│ └── img
│ ├── favicon.ico
│ ├── favicon.png
│ └── macchiato.png
└── index.html # Main index file
This project is licensed under the MIT license.
If you have any questions or comments, please create an issue.