****有些东西看得懂就好,没必要看透**** ---致随性的人
????strongloop??????api
????
1.????nodejs npm mysql???????(node?????8??)
2.??strongloop(????????????)???????
I: sudo npm install -g sqlite3 --unsafe-perm --verbose
II: sudo npm install -g strongloop --unsafe-perm --verbose
??????strongloop
1.??????? eg:mmkdir strongloopStudy
2.cd strongloopStudy
3.slc loopback(??????????)
4.????????api??????????????
I: ??enter
II: select 2.x
III: api-server
5.?????????????,??????????
I: slc loopback:datasource
II: name: suibian
III: connector: mySQL
IIII: ?????????????(????????)
IIIII: ????????? loopback-connector-mysql?yes??
6.slc loopback:model
I: name: suibian
II: select (??????????????????)???db
III: Persistedmodel
IIII: yes
IIIII: common
????????????
1.slc arc ???????models?dataSource
2.node . ?????????pai?(??get,post,put??)