sails-boilerplate
Full Stack Sanity~!
Dependency and module management split between NPM (back-end) and Bower (front-end) for simple project delegation or pure sanity across the stack.
Pipeline supports Bootstrap, Angular, [Angular Directives] (https://angular-ui.github.io/bootstrap/) for Bootstrap, Jade templates, and Sass, straight out of the box.
Passport-ready authentication system baked in.
Built to rapidly prototype enterprise-grade realtime applications with Sails.js. You should be familiar with Sails before using this boilerplate!
Installation & Use
git clone https://github.com/nuwen/sails-boilerplate.git myproject
cd myproject
npm install
bower install
rm -r bower_components/boostrap-sass-official/assets/javascripts
REQUIRED: delete Bootstrap javascripts to prevent conflicts with Angular Directives for Bootstrap. Angular Directives will break if you skip this step!sails lift
,sails lift --debug
orsails lift --verbose
to init your app with development debugging.sails lift --prod
to init your app in minified production mode.
Instructions
tasks/config/bower.js
Use this file to declare granular bower configurations. Do NOT modify options: {ignorePackages: ['bootstrap-sass-official']}
! This setting allows you to manage bootstrap-sass-official modules in /tasks/config/sass.js
.
tasks/config/sass.js
Use this file to manage the SASS pipeline. By default, Bootstrap styles are in the loadPath and assets/scsss/importer.scss
is used to declare dependencies & partials.
These are just Grunt tasks, so modify to your own spec!