Please help build that feature with ideas 💭 here ... or code and tests here: https://github.com/wejs/sails-acl
- User model - TODO add example link
| module.exports = { | |
| appName: 'We.js', | |
| fileUploadPath: 'uploads/files', | |
| imageUploadPath: 'uploads/images', | |
| /** |
Please help build that feature with ideas 💭 here ... or code and tests here: https://github.com/wejs/sails-acl
- User model - TODO add example link
If i try to get one sub depth attribute in sails.config and a sub attribute dont exists it will return a error but if i have a getter it can return a undefined even if a sub attribute dont exists
This is a good feature to core or is best to write a npm module (sails.utils.extra?) and plug this helpers with hook or bootstrap function?
May be something like:
/**
* Get one sails.js config getter
*
| /** | |
| * file: config/local.js | |
| * | |
| * Local environment settings | |
| * | |
| * While you're DEVELOPING your app, this config file should include | |
| * any settings specifically for your development computer (db passwords, etc.) | |
| * | |
| * When you're ready to deploy your app in PRODUCTION, you can always use this file | |
| * for configuration options specific to the server where the app will be deployed. |
| { | |
| "estados": [ | |
| { | |
| "sigla": "AC", | |
| "nome": "Acre", | |
| "cidades": [ | |
| "Acrelândia", | |
| "Assis Brasil", | |
| "Brasiléia", | |
| "Bujari", |
| #!/bin/bash | |
| #node | |
| sudo apt-get install curl | |
| curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash - | |
| sudo apt-get install nodejs | |
| #mysql | |
| sudo apt-get install mysql-server mysql-client |
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
O we messenger hoje possuí uma estrutura distribuída distribuída com um app de cliente ember.js e a API (server) com we.js e o plugin we-plugin-messenger
| var gm = require('gm'); | |
| var canvasWidth = 248; | |
| var canvasHeight = 389; | |
| gm(__dirname + '/original.jpg').size(function(error, size) { | |
| if (error) { | |
| console.error(error); |