StrongLoop 和 Dreamfactory 1、比較複雜的SQL能不能自定議? 基本上兩者目前都還在開發中,StrongLoop是beta吧 2、能不能在資料CRUD時,Model自訂檢查? 這樣後端檢查完就送回前端,雖然最好是前端就要檢查,但實際上,前端檢查完畢後,後端還是要再檢查一次,不然駭客之類可以模擬crul方式送資料,繞過前端檢查,所以最後後端還要檢查,那到不如直接在後端檢查完畢後,送回訊息。 當然如果真的要即時性非常重的話,那還是要先在前端檢查了~~~ 3、登入、帳號管理、token? Dreamfactory一直來都非常的清楚,而StrongLoop現在也清楚多了 4、效能、API、Restful使用? 這只能租主機,然後掛上去,試試看,才能知道,到底效能如何

繼續閱讀

底下是strongloop相關操作 Managing users 管理使用者 https://docs.strongloop.com/display/public/LB/Managing+users Getting started with LoopBack 怎麼使用loopback https://docs.strongloop.com/display/public/LB/Getting+started+with+LoopBack Getting started part II 怎麼使用loopback II https://docs.strongloop.com/display/public/LB/Getting+started+part+II Validating model data 資料進資料庫前的驗証 https://docs.strongloop.com/display/public/LB/Validating+model+data Executing native SQL 自訂義SQL,但還在測試中,不能保障正常運行 --This feature has not been fully tested and is not officially supported: the API may change in future releases. https://docs.strongloop.com/display/public/LB/Executing+native+SQL

繼續閱讀

StrongLoop begin

http://docs.strongloop.com/display/LB/LoopBack+2.0+release+notes http://docs.strongloop.com/display/LB/Project+layout+reference http://docs.strongloop.com/pages/viewpage.action?pageId=3836281 https://github.com/strongloop/loopback-example-app this is new loopback example, need to look at this example, can understand how to work loopback. if see “slc lb”, the mean is old loopback 1.0, so don’t need to see. https://github.com/strongloop/loopback-example-passport http://passportjs.org/guide/oauth/ I try many, so now I think loopback 2.0….is too new, many docs is not correct. Maybe furture is good or ok, but now for develpoer is no good….

繼續閱讀

x http://docs.strongloop.com/display/LB/Controlling+data+access x can’t use old…https://github.com/strongloop/loopback-example-access-contro ……………..l Ok http://docs.strongloop.com/display/LB/Creating+and+authenticating+users http://xxx-xxx.rhcloud.com/explorer/#!/Users New User 2.1. Click POST /Users 2.2. Click to set as parameter value 2.3. Change value: username ‘tt’, email ‘tt@tt.com’ . Add new “password”: “xxx”, 2.4. Try it out! if Response Code = 200 then success. Login User 3.1. before login, try to Click Get /Users/{id} , put id = 1, Try it out! get error msg: 401 Authorization Required….

繼續閱讀

https://developers.openshift.com/en/getting-started-client-tools.html#ubuntu http://docs.strongloop.com/display/SL/OpenShift 3.http://xxxx-xxxxx.rhcloud.com/ http://xxxx-xxxxx.rhcloud.com/explorer/ http://strongloop.com/strongblog/node-js-rest-api-openshift-redhat/?utm_source=tuicool old : loopback :http://loopback.io/ new : http://strongloop.com/ rhc create-app sl https://raw.github.com/strongloop/openshift-cartridge-strongloop/master/metadata/manifest.yml rhc show-app xxxxx 查相關資訊 rhc show-app xxxxx –gears quota 查空間 update to openshift, need to install local npm and strongloop *ubuntu * curl -sL https://deb.nodesource.com/setup | sudo bash - sudo apt-get install nodejs https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager npm install -g strongloop =========== ALL in LOCAL: slc loopback:datasource myMongoDB this is local, not on openshift if local no file, use rhc git-clone to get file in local.

繼續閱讀

作者的圖片

Sue boy

Sueboy Can support You

CIO

Taiwan