[Node.js] package.json ์ƒ์„ฑ
ยท
๐Ÿ“Language/๐ŸŸข Node.js
ENOENT: no such file or directory, open package.json pacakage.json ํŒŒ์ผ์ด ์—†์„๋•Œ npm init - ํŠน๋ณ„ํžˆ ์„ค์ •ํ•  ๊ฒƒ์ด ์—†๋‹ค๋ฉด ์ „๋ถ€ enter๋ฅผ ๋ˆŒ๋Ÿฌ ๋„˜์–ด๊ฐ„๋‹ค. npm install
[Node.js] PM2
ยท
๐Ÿ“Language/๐ŸŸข Node.js
์„ค์น˜ https://pm2.keymetrics.io/ PM2 - Home Advanced process manager for production Node.js applications. Load balancer, logs facility, startup script, micro service management, at a glance. pm2.keymetrics.io Package Manager - ์†Œํ”„ํŠธ์›จ์–ด๋ฅผ ๊ด€๋ฆฌ, ์—…๋ฐ์ดํŠธ, ์„ค์ •ํ•ด์ฃผ๋Š” ๊ฒƒ - Nodejs ์—์„œ๋Š” NPM์„ ์‚ฌ์šฉํ•จ PM2 - nodejs๊ฐ€ ์‹คํ–‰๋˜๋‹ค ๊บผ์ง€๋ฉด ๋‹ค์‹œ ์ผœ์คŒ - ํŒŒ์ผ์„ ์ˆ˜์ •ํ•œ ๊ฒฝ์šฐ nodejs๋ฅผ ๊ป๋‹คํ‚ค์ง€ ์•Š์•„๋„ ์ˆ˜์ •์‚ฌํ•ญ ๋ฐ”๋กœ ๋ฐ˜์˜ (์ž๋™์œผ๋กœ ๊ป๋‹ค์ผœ์คŒ) ์„ค์น˜ npm install pm2 -g ๋ช…๋ น์–ด ์‹คํ–‰ pm2 start {ํŒŒ์ผ์ด๋ฆ„}..
[Node.js] ์ฝœ๋ฐฑ callback
ยท
๐Ÿ“Language/๐ŸŸข Node.js
callback.js var a = function(){ //'a'๋ผ๋Š” ๋ณ€์ˆ˜์˜ ์ •์˜ console.log('A'); } function testfunc(callback){ //2.testfuncํ•จ์ˆ˜๋Š” callback์ด๋ผ๋Š” ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ๊ฐ–๋Š”๋‹ค. callback(); //3.callback ํ•จ์ˆ˜๋ฅผ ์‹คํ–‰ํ•ด๋ผ } testfunc(a); //1.testfuncํ•จ์ˆ˜๋ฅผ ๋ณ€์ˆ˜a๋ฅผ ๋„ฃ์–ด์„œ ์‹คํ–‰ํ•ด๋ผ ์‹คํ–‰ ๋ช…๋ น์–ด node callback.js ์ถœ๋ ฅ : A
[JS] fetch API ์‚ฌ์šฉํ•˜๊ธฐ
ยท
๐Ÿ“Language/๐ŸŸจ Javascript
์ดˆ๊ธฐํ™”๋ฉด - fetch_test.html ๋ฒ„ํŠผ ๋ˆ„๋ฅด๋ฉด ์•Œ๋ฆผ์ฐฝ ๋„์šฐ๊ธฐ - fetch_test.html - event ํŒŒ์ผ ์ œ๋ชฉ ๋‚ด์šฉ์ด๋‹ค. ๋ฒ„ํŠผ ๋ˆ„๋ฅด๋ฉด ๊ธ€ ๋‚˜์˜ค๊ฒŒ ํ•˜๊ธฐ - fetch_test.html - event ํŒŒ์ผ ์ œ๋ชฉ ๋‚ด์šฉ์ด๋‹ค.
[Node.js] Window ๊ฐœ๋ฐœํ™˜๊ฒฝ ๊ตฌ์ถ•
ยท
๐Ÿ“Language/๐ŸŸข Node.js
๋‹ค์šด๋กœ๋“œ https://nodejs.org/ko/ Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org - LTS ๋‹ค์šด ์„ค์น˜ ํ™•์ธ - cmd์ฐฝ (Window + r) ์ข…๋ฃŒ : ctrl + c ๋‘๋ฒˆ ํŒŒ์ผ ์‹คํ–‰ํ•˜๊ธฐ - ํด๋” ํ•˜๋‚˜ ๋งŒ๋“ ๋‹ค. - ํด๋” ๋‚ด์— .js ํŒŒ์ผ ํ•˜๋‚˜ ๋งŒ๋“ ๋‹ค. - cmd์ฐฝ์œผ๋กœ ์‹คํ–‰ํ•ด๋ณธ๋‹ค ์ƒ์„ฑํ•œ ํŒŒ์ผ ๊ฒฝ๋กœ๋กœ ์ด๋™ cd {ํŒŒ์ผ์„ ์ƒ์„ฑํ•œ ๋””๋ ‰ํ„ฐ๋ฆฌ ๊ฒฝ๋กœ} ๋””๋ ‰ํ„ฐ๋ฆฌ๋‚ด ํŒŒ์ผ ๋ณด๊ธฐ dir ์‹คํ–‰ node {ํŒŒ์ผ์ด๋ฆ„}
[Python] ๋ณ€์ˆ˜/ ๋ณ€์ˆ˜ ํƒ€์ž…
ยท
๐Ÿ“Language/โž• Python
๋ณ€์ˆ˜ ์„ ์–ธ hello = "๋ณ€์ˆ˜ ์‚ฌ์šฉํ•˜์—ฌ ๊ธด๋ฌธ์žฅ ์ถœ๋ ฅํ•˜๊ธฐ" print(hello) ๋ณ€์ˆ˜ ํƒ€์ž… #type(๋ณ€์ˆ˜๋ช…) -๋ณ€์ˆ˜์˜ํ˜•ํƒœ ํ™•์ธํ•˜๊ธฐ num1 = 100 print(type(num1)) #int num2 = "100" print(type(num2)) #str num3 = 0.1 print(type(num3)) #float word = True print(type(word)) #bool plus1 = num1+20 print(plus1) plus2 = num2+"20" print(plus2)
[C] ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ / ์ถœ๋ ฅ
ยท
๐Ÿ“Language/๐Ÿ”ต C
https://visualstudio.microsoft.com/ko/downloads/ Visual Studio Tools ๋‹ค์šด๋กœ๋“œ - Windows, Mac, Linux์šฉ ๋ฌด๋ฃŒ ์„ค์น˜ Visual Studio IDE ๋˜๋Š” VS Code๋ฅผ ๋ฌด๋ฃŒ๋กœ ๋‹ค์šด๋กœ๋“œํ•˜์„ธ์š”. Windows ๋˜๋Š” Mac์—์„œ Visual Studio Professional ๋˜๋Š” Enterprise Edition์„ ์‚ฌ์šฉํ•ด ๋ณด์„ธ์š”. visualstudio.microsoft.com ์ƒ์„ฑ ์ถœ๋ ฅ ์ฝ”๋“œ์ž‘์„ฑ #include int main(void) { printf("Hello C!\n"); return 0; } ์‹คํ–‰
[Python] ์ถœ๋ ฅ / ์ฃผ์„
ยท
๐Ÿ“Language/โž• Python
์ถœ๋ ฅ print("Hello World") - print ํ•จ์ˆ˜๋Š” ์†Œ๋ฌธ์ž๋กœ ์“ฐ๊ธฐ - ' (์ž‘์€๋”ฐ์˜ดํ‘œ)๋‚˜ " (ํฐ๋”ฐ์˜ดํ‘œ) ๋‘˜๋‹ค ์‚ฌ์šฉ๊ฐ€๋Šฅ - pr + Tab + ( = ์ž๋™์ž…๋ ฅ ์‰˜์ฐฝ์—์„œ ์‹คํ–‰ ์—๋””ํ„ฐ์ฐฝ์—์„œ ์‹คํ–‰ - ์ฝ”๋“œ์ž…๋ ฅ -> ์ €์žฅ(Ctrl+S) -> ์‹คํ–‰(F5) #๋ฌธ์ž๋ฅผ ์ถœ๋ ฅํ• ๋•Œ๋Š” ์ž‘์€๋”ฐ์˜ดํ‘œ๋‚˜ ํฐ๋”ฐ์˜ดํ‘œ ์ž…๋ ฅ print("Hello Python") #์ˆซ์ž๋ฅผ ์ถœ๋ ฅํ• ๋•Œ๋Š” ์ž…๋ ฅX print(10) #์ˆซ์ž์— ์ž‘์€๋”ฐ์˜ดํ‘œ๋‚˜ ํฐ๋”ฐ์˜ดํ‘œ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ์ˆซ์ž๊ฐ€ ์•„๋‹Œ ๋ฌธ์ž๋กœ ์ธ์‹ print('10') print(10+10) print('10+10') ์ฃผ์„ - ํ•œ์ค„ ์ฃผ์„ : # - ์—ฌ๋Ÿฌ์ค„ ์ฃผ์„ : ''' ''' or """ """ print('Hello Python') #print('Hello Hello') print('ํ•œ์ค„ ์ฃผ์„')..
[Python] Window - ์„ค์น˜ / ํ™˜๊ฒฝ์„ค์ • / ๊ตฌ์„ฑ
ยท
๐Ÿ“Language/โž• Python
2๊ฐ€์ง€์ค‘์—์„œ ํ•˜๋‚˜ ์„ ํƒํ•ด์„œ ๋‹ค์šด - PyCharm (์ถ”์ฒœ) - IDLE PyCharm ์‚ฌ์šฉํ•˜๊ธฐ ์„ค์น˜ https://www.jetbrains.com/ko-kr/pycharm/download/#section=windows ๋‹ค์šด๋กœ๋“œ PyCharm: JetBrains๊ฐ€ ๋งŒ๋“  ์ „๋ฌธ ๊ฐœ๋ฐœ์ž์šฉ Python IDE www.jetbrains.com - Community ๋ฒ„์ „ ๋‹ค์šด๋ฐ›๊ธฐ (์ด๊ฒŒ ๋ฌด๋ฃŒ์ž„) - '์ƒˆ ํ”„๋กœ์ ํŠธ' ํด๋ฆญ > ์œ„์น˜์™€ ์ด๋ฆ„ ์ •ํ•˜๊ณ  > '์ƒ์„ฑ' ํด๋ฆญ ํ™˜๊ฒฝ์„ค์ • ๊ตฌ์„ฑ ์‰˜์ฐฝ - ํ•˜๋‹จ์˜ 'Python ์ฝ˜์†”' ํด๋ฆญ ์—๋””ํ„ฐ์ฐฝ - ์ƒ์„ฑํ•œ ํŒŒ์ผ์— ์ฝ”๋“œ์ž‘์„ฑ > ํŒŒ์ผ ์—์„œ ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ > ์‹คํ–‰ IDLE ์‚ฌ์šฉํ•˜๊ธฐ ์„ค์น˜ https://www.python.org/ Welcome to Python.org The official ..
[PHP] Window์—์„œ ๊ฐœ๋ฐœํ™˜๊ฒฝ ๋งŒ๋“ค๊ธฐ -php,apache,mysql๋‹ค ๋”ฐ๋กœ ๋‹ค์šด๋ฐ›๊ธฐ
ยท
๐Ÿ“Language/๐ŸŸฃ PHP
Apache์„ค์น˜ 1. Apache ๋‹ค์šดhttps://www.apachelounge.com/download/ Apache VS16 binaries and modules download www.apachelounge.com  2. C๋“œ๋ผ์ด๋ธŒ์— 'APM'ํด๋” ๋งŒ๋“ค์–ด์„œ ์••์ถ• ํ•ด์ œ  3. C:\APM\Apache24\conf ์˜ httpd.conf๋ฅผ ์—ด์–ด์„œ ๋ช‡๊ฐ€์ง€ ์ˆ˜์ •ํ•˜๊ธฐ- ์ € ๊ฒฝ๋กœ๋ฅผ c:/APM/Apache24 ๋กœ ๋ณ€๊ฒฝ - ์ € ๊ฒฝ๋กœ๋ฅผ c:/APM/Apache24/htdocs ๋กœ ๋ณ€๊ฒฝ  4. ์‹คํ–‰ํ•˜๊ธฐ- cmd์ฐฝ์„ ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰ํ•˜๊ธฐ- C:\APM\Apache24\bin ๋กœ ์ด๋™ ํ•˜๊ธฐ => cd C:\APM\Apache24\bin- ์„ค์น˜ํ•˜๊ธฐ => httpd.exe -k install    (์‚ญ์ œ๋Š”  httpd..