Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Sails.js - Overview

654 views

Published on

Sails.js is a nodejs realtime framework. The presentation show:
- controllers
- policies
- views and layouts
- configurations
- hooks
- practical advice

More on: http://events.pozoga.eu/ng-poznan-14/

Published in: Internet
  • Be the first to comment

  • Be the first to like this

Sails.js - Overview

  1. 1. Start sudo npm install sails -g sails new newProject sails generate controller user index show edit delete sails generate model user name:string email:string password:string sails generate user sails console sails lift
  2. 2. Base structure ./api/controllers ./api/models ./api/policies ./api/responses ./api/services ./config ./assets ./tasks/register ./tasks/config Gruntfile.js
  3. 3. api/...
  4. 4. # /api/controllers/ContentController.js
  5. 5. # /api/models/content.js
  6. 6. # /api/policies/sessionAuth.js
  7. 7. # /api/responses/ok.js
  8. 8. config/...
  9. 9. # /config/views.js
  10. 10. # /config/routes.js
  11. 11. # /config/i18n.js
  12. 12. # /config/locales/lang.js
  13. 13. # /config/local.js
  14. 14. # /config/connections.js
  15. 15. # /config/blueprints.js
  16. 16. # /config/bootstrap.js
  17. 17. views/...
  18. 18. # /config/layout.ejs
  19. 19. # /config/example.ejs
  20. 20. assets/...
  21. 21. # /assets/index.html
  22. 22. tasks/...
  23. 23. # /tasks/config/requirejs.js
  24. 24. # /tasks/register/buildMyAssets.js
  25. 25. Dependencies (49) waterline, uid-safe, skipper, semver, sails-util, sails-stringfile, sails-hook- sockets, sails-generate, sails-disk, sails-build-dictionary, reportback, rc, prompt, pluralize, node-uuid, mock- res, mock-req, method-override, merge-defaults, lodash, include-all, i18n, grunt-sync, grunt-sails-linker, grunt-contrib-watch, grunt-contrib- uglify, grunt-contrib-less, grunt-contrib-jst, grunt-contrib-cssmin, grunt-contrib-copy, grunt-contrib- concat, grunt-contrib-coffee, grunt- contrib-clean, grunt-cli, grunt, glob, fs- extra, express-handlebars, express, ejs-locals, ejs, cookie-signature, cookie, connect-flash, commander, colors, captains-log, async, anchor
  26. 26. Hooks ● sails-hook-email ( link / services list ) ● sails-hook-autoreload ( link ) ● sails-hook-jobs ( link ) ● sails-hook-validation ( link )
  27. 27. Do you have any questions? Thanks for attention sebastian@pozoga.eu

×