StrongLoop Access Control

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….. now can sure, not login. 3.2. Click POST /Users/login 3.3. credentials value input {“username”:“tt”, “password”:“xxx”} 3.4. if see id , ttl, created, userid then success. id = access token 3.5. copy id value, put access token on page top. click Set Access Token. 3.6. now go back 3.1, try again. now success. login user only can use by self fun. ...

2014-09-15 · 1 min · 130 words · Me

StrongLoop OpenShift offine-sync TEST

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. *ps.1 ...

2014-09-15 · 1 min · 156 words · Me

CouchDB 免費使用(有限制金額) iris

iris http://www.iriscouch.com/service 但基本上,如果小型專案就夠用了。

2014-09-15 · 1 min · 3 words · Me

ssh logini openshift

use puttygen to product .ppk , need product openssh key (menu conversions) command line:ssh -i “openssh key” xxxxx@xx-xxxx.rhcloud.com then can login, use linux ssh ~~~

2014-09-14 · 1 min · 25 words · Me

推送 訊息

http://pusher.com/ Connections:20 MAX ,Channels:UNLIMITED , Messages / day:100,000

2014-09-13 · 1 min · 8 words · Me