# proxy setting
npm config set proxy http://192.0.0.4:10001
npm config set https-proxy http://192.0.0.4:10001
npm config set strict-ssl false
npm config set registry http://registry.npmjs.org/
# confirm: ~/.npmrc
npm config list
# nvm
nvm list
nvm install 12.22.9
nvm alias default 12.22.9
# ์ถ๊ฐ๋ก ํ ๊ฒ
nodejs express ๊ฒ์ํ
mongodb https://javafa.gitbooks.io/nodejs_server_basic/content/chapter12.html
nodejs sqlite https://kamang-it.tistory.com/entry/NodeJSExpressSQLiteNodejs-express%EC%83%81%EC%97%90%EC%84%9C-SQLite%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0%ED%9A%8C%EC%9B%90%EA%B0%80%EC%9E%85%EC%9D%84-%EC%98%88%EC%A0%9C%EB%A1%9C-%EB%A7%8C%EB%93%A4%EA%B8%B0
# ๋ ธ๋ ์ค์นํ ํ์ธ
๋
ธ๋ ํ์ธ
node -v
npm ํ์ธ
npm -v
node๋ฅผ ์
๋ ฅํ๊ณ ์ง์ ์์ฑํด๋ ๋จ
1) npm init -y๋ฅผ ์คํ ์ package.json ํ์ผ ์์ฑ
2) npm install์ ํ๋ฉด package.json์ ์๋ ๋ชจ๋์ ์ค์นํจ
# unable to verify the first certificate
npm config set registry http://registry.npmjs.org/ --global
ํด๋น ํ๋ก์ ํธ์์๋ง ์ฌ์ฉํ๋ ๋ชจ๋ ๋ชจ์นด์ค์น (Fromt-End ๋จ์ ํ
์คํธ ํ๋ ์์ํฌ)
1) npm install mocha --save-dev
2) npm install mocha -g ์ ์ญ(C:\Users\์ฌ์ฉ์๋ช
\AppData\Roaming\npm)์ผ๋ก ์ฌ์ฉ
3) npm link mocha ์ ์ญ์ผ๋ก ์ค์นํ ๋ชจ๋์ ์ฌ๋ณผ๋ฆญ๋งํฌ๋ก ์ฌ์ฉ
npm list
npm list -g
npm ls
npm ls -depth=0
http://webframeworks.kr/tutorials/nodejs/api-server-by-nodejs-01/
1.๋ค์ด๋ก๋
https://nodejs.org/en/download/
2.์ค์น
mkdir codlab-nodejs
cd codlab-nodejs
npm init
3.app.js const http = require('http');
const hostname = '127.0.0.1';const port = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World\n');});
server.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);});
4.node app.js
5.npm start
6.curl -X GET '127.0.0.1:3000'
port number ended with
7.mysql
# ์๋ฌ๋ฐ์์
Client does not support authentication protocol requested by server; consider upgrading MySQL client
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '๋น๋ฐ๋ฒํธ'
8.์คํธ๋ฆฌ๋ฐ
## Streaming
https://javafa.gitbooks.io/nodejs_server_basic/content/chapter11.html
https://medium.com/better-programming/video-stream-with-node-js-and-html5-320b3191a6b6
https://github.com/daspinola/video-stream-sample
9.์ฑํ
##https://github.com/adityabansod/quickgroupchat
10.Node.js ์ผ๊ตด์ธ์
https://medium.com/@muehler.v/node-js-opencv-for-face-recognition-37fa7cb860e8
git clone https://turtle.scm.azurewebsites.net:443/turtle.git
##๋ฐฐํฌ๋ฐฉ๋ฒhttps://m.blog.naver.com/PostView.nhn?blogId=cck223&logNo=220957983702&proxyReferer=https%3A%2F%2Fwww.google.com%2F
##๋ฐฐํฌ๋ฐฉ๋ฒhttps://www.freecodecamp.org/news/how-to-deploy-your-super-cool-node-app-to-azure-from-github-47ebff6c5448/
๋ฐฐํฌ์์๋ ๋ฐ๋์ 80ํฌํธ์ npm start๋ฅผ ์ ์ฉํด์ค์ผํจ
11.๋ฐฐํฌ
##azure authentication failed
https://stackoverflow.com/questions/35834117/git-error-fatal-authentication-failed/35847427
control Panel --> Credential Manager --> Manage Windows Credentials ์ ์ดํ ์๊ฒฉ์ฆ๋ช
https://stackoverflow.com/questions/34837173/authentication-failed-for-azure-git
https://www.codeproject.com/Articles/1133660/Deploy-Node-js-in-Microsoft-Azure
12.Angularjs Angular ## angular + nodejs-express https://levelup.gitconnected.com/simple-application-with-angular-6-node-js-express-2873304fff0f https://github.com/jsmuster/angular-node-express
##์ฌ์ฉ๋ฒ https://forest71.tistory.com/158?category=653288
##์์ค https://github.com/gujc71/angularBoard
13.Azure์ Angular ๋ฐฐํฌ
## https://github.com/Azure/ng-deploy-azure
## VSCode์ฌ์ฉํด์ Deploy https://dzone.com/articles/deploy-an-angular-app-from-visual-studio-code-to-a-1
##Angular Cli ๋ฐฐํฌ https://myview.rahulnivi.net/build-deploy-angular-app-azure-via-kuduscriptgithub/
npm install
npm install -g @angular/cli
ng install kuduscript -g
ng build -prod
ng update @angular/cli @angular/core
14.Angular ๊ด๋ จ
https://github.com/Azure/ng-deploy-azure
https://dzone.com/articles/deploy-an-angular-app-from-visual-studio-code-to-a-1
https://myview.rahulnivi.net/build-deploy-angular-app-azure-via-kuduscriptgithub/
https://github.com/gujc71/angularBoard
https://forest71.tistory.com/158?category=653288
kudu angular cli https://myview.rahulnivi.net/build-deploy-angular-app-azure-via-kuduscriptgithub/
angular cli deploy to azure https://johnpapa.net/deploy-angular-to-azure-vsts-angular-cli/
15.Angular-Cli๋ฅผ Azure์ ๋ฐฐํฌ (20191004๊ธ)
npm install -g @angular/cli
ng new hello-world --defaults
cd hello-world
ng add @azure/ng-deploy
git push https://turtle.scm.azurewebsites.net:443/turtle.git HEAD:master --tags -f
# Invalid Host header ng serve๋ฅผ ์คํํ์ ๋ ํฌํธ๋ก๋ ์ ๊ทผ์ด ๊ฐ๋ฅํ์ง๋ง url๋ก ์ ๊ทผ ์ ์๋ฌ๊ฐ ๋ฐ์ํจ
## ์๋ฒ์คํ์ --disalbeHostCheck
cd C:\inetpub\wwwroot\node
ng serve --host 0.0.0.0 --port 4200 --disableHostCheck
pause
https://tbang.tistory.com/124
webpack.config.js
var config = {
:
devServer: {
contentBase: path.resolve(__dirname, './src'),
disableHostCheck: true,
host: "0.0.0.0" // default : 127.0.0.1
}
:
module.exports = config;
C:\inetpub\wwwroot\node\node_modules\@angular-devkit\build-angular\src\utils
##Angular/-cli ๊ณต๋ถ
https://poiemaweb.com/angular-cli
http://www.gisdeveloper.co.kr/?p=5566
http://lab.gamecodi.com/board/zboard.php?id=GAMECODILAB_QnA_etc&no=5258&z=
#Running Batch Script on remote Server via PowerShell
https://stackoverflow.com/questions/32125893/running-batch-script-on-remote-server-via-powershell
https://svrstudy.tistory.com/75
https://forest71.tistory.com/158
์๋ฒ ์ข
๋ฃ https://stackoverflow.com/questions/39074678/how-to-end-ng-serve-or-firebase-serve
17.Angular ๋ชจ๋ ์ถ๊ฐ
ng g c menu4 --module home
ng g c
18.mongodb
https://javafa.gitbooks.io/nodejs_server_basic/content/chapter12.html
db.collection.insert({test:'newValue'})
db.collection.find()
19.Angular ๊ธฐ๋ณธ์ฌ์ดํธ ๋ง๋ค๊ธฐ
https://www.a-mean-blog.com/ko/blog/Angular-2/%EA%B8%B0%EB%B3%B8%EC%82%AC%EC%9D%B4%ED%8A%B8-%EB%A7%8C%EB%93%A4%EA%B8%B0
20.JSON ๊ด๋ จ์ค๋ฅ ํฌ๋กฌ์์ ์ ์ฉ ์๋จ
--disable-web-security --user-data-dir
Oracle 11g Express ๋ค์ด๋ก๋ oracle.com/database/technologies/oracle-database-software-downloads.html
21.Bootstrap
https://www.tutorialrepublic.com/twitter-bootstrap-tutorial/bootstrap-tabs.php
โ - next - node-se2 โ