azure git 托管

azure git上传部署步骤:
(首次提交)
cd 至本地代码路径
git init
git add .
git commit –m "initial commit"
git remote add azure https://jinjunyao@testnodejs.scm.chinacloudsites.cn:443/testnodejs.git
git push master

(再次提交)
git add .
git commit –m "version 2"
git push azure master

----------------------------------------------------------------------------------------------------
上传至github远程仓库托管步骤:
cd 至本地代码路径
git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/ignaciozhuzhu/mynpm.git
git push -u origin master

demo代码已托管至 https://github.com/ignaciozhuzhu/mynpm

----------------------------------------------------------------------------------------------------
mssqlserver的连接:
1.千万不要用网上所说的msnodesql包,巨坑,白费数个小时研究!!!下了各种版本,各种native sql2012 ,没一个能用.可能是版本太旧,资料全是3年前的,WIN7的.而本地环境是64位 WIN10.
http://csdoc.org/ 里也有其参考资料,但是多次尝试失败,不推荐.

2.正确做法是 直接 npm install mssql . 当然,前提是已经装有node环境.
1)安装及学习nodejs可参考 http://www.runoob.com/nodejs/nodejs-install-setup.html
2)nodejs官网 API https://nodejs.org/api/net.html#net_event_close_1
3)API中文版 http://nodeapi.ucdok.com/#/api/http.html

3.连接示例就在这里了.
1)官网: http://csdoc.org/
2)NPM官网:https://www.npmjs.com/package/mssql
3)github:https://github.com/patriksimek/node-mssql
4)连接基类 http://www.niefengjun.cn/blog/b32fe17804234803b0501651d68a2309.html

原文地址:https://www.cnblogs.com/ignacio/p/5387770.html