sails.js - overview

29

Upload: sebastian-pozoga

Post on 13-Apr-2017

604 views

Category:

Internet


0 download

TRANSCRIPT

Startsudo npm install sails -gsails new newProject

sails generate controller user index show edit deletesails generate model user name:string email:string password:stringsails generate user

sails consolesails lift

Base structure./api/controllers./api/models./api/policies./api/responses./api/services

./config

./assets

./tasks/register

./tasks/configGruntfile.js

api/...

# /api/controllers/ContentController.js

# /api/models/content.js

# /api/policies/sessionAuth.js

# /api/responses/ok.js

config/...

# /config/views.js

# /config/routes.js

# /config/i18n.js

# /config/locales/lang.js

# /config/local.js

# /config/connections.js

# /config/blueprints.js

# /config/bootstrap.js

views/...

# /config/layout.ejs

# /config/example.ejs

assets/...

# /assets/index.html

tasks/...

# /tasks/config/requirejs.js

# /tasks/register/buildMyAssets.js

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

Do you have any questions?

Thanks for attention

[email protected]