# 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
Last Updated: 4/13/2025, 11:14:44 PM