Focus On Develop ๐ŸคŸ๐ŸคŸ

[node.js] Nodejs, Expressjs๋ž€? ๋ณธ๋ฌธ

๊ณตํ†ต/BackEnd

[node.js] Nodejs, Expressjs๋ž€?

๋ˆ„๋ฆฌ๋‹ฌ์ดํ‹€ 2021. 3. 4. 22:17

๋จผ์ € ๋ง์”€๋“œ๋ฆฌ๊ณ  ์‹ถ์€ ๊ฑด, ์ด ํฌ์ŠคํŒ…์€ Nodejs์™€ Expressjs์˜ ์žฅ,๋‹จ์  ๋“ฑ๋“ฑ ๋งค์šฐ ์ž์„ธํ•˜๊ฒŒ ๋‹ค๋ฃจ์ง€๋Š” ์•Š์„๊ฑฐ์—์š”.

๋‹ค๋งŒ, nodejs๋กœ ์„œ๋ฒ„๋ฅผ ๊ตฌ์„ฑํ•˜๊ธฐ ์ „์— ์•ž์„œ์„œ ์•„! ์ด๋Ÿฐ๊ฑฐ๊ตฌ๋‚˜! ํ•˜๋Š” ์ •๋„๋งŒ ๋‹ค๋ฃฐ ์˜ˆ์ •์ž…๋‹ˆ๋‹ค.


node.js

์ผ๋ฐ˜์ ์œผ๋กœ javaScript๋Š” ์›น๋ธŒ๋ผ์šฐ์ €๋‚˜ ์›น์‚ฌ์ดํŠธ์—์„œ๋งŒ ์‹คํ–‰ ๊ฐ€๋Šฅํ•˜์ฃ ?

noejs๋Š” javaScript๋ฅผ ์›น๋ธŒ๋ผ์šฐ์ €, ์›น์‚ฌ์ดํŠธ ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ์™ธ๋ถ€์—์„œ๋„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๋Š” cross-platform ์—”์ง„์ด์—์š”.

 

๋งŽ์€ ์ž…๋ฌธ์ž๋“ค์ด nodejs๋ฅผ ์›น์„œ๋ฒ„๋ผ๊ณ  ์ƒ๊ฐํ•˜๋Š”๋ฐ, nodejs๊ฐ€ http์„œ๋ฒ„๋ฅผ ๋‚ด์žฅํ•˜๊ณ  ์žˆ์–ด์„œ ์„œ๋ฒ„๋กœ ๋งŽ์ด ์‚ฌ์šฉํ•˜์ง€๋งŒ, nodejs ์ž์ฒด๋กœ๋Š” ์›น์„œ๋ฒ„๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค!

์‘..? ์„œ๋ฒ„๋กœ ์‚ฌ์šฉํ•˜๋Š”๋ฐ ์„œ๋ฒ„๊ฐ€ ์•„๋‹ˆ๋ผ๊ณ ..? ๐Ÿ˜‚

nodejs๋Š” ์ฝ”๋“œ๋ฅผ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋Š” ํ•˜๋‚˜์˜ ๋ฐฉ๋ฒ•(๋Ÿฐํƒ€์ž„)์ผ ๋ฟ์ด๊ณ , ๋‚ด์žฅ๋œ http์„œ๋ฒ„๋ฅผ ์ด์šฉํ•˜๊ณ  ์ฝ”๋“œ๋ฅผ ์„œ๋ฒ„์ฒ˜๋Ÿผ ์‚ฌ์šฉํ•˜๋„๋ก ๋งŒ๋“ค์–ด์„œ ์„œ๋ฒ„๋กœ ์‚ฌ์šฉํ•˜๋Š” ๊ฑฐ์ฃ !

 

์˜ค์ผ€์ด.. ๊ทธ๋Ÿผ ์„œ๋ฒ„๋Š” ์–ด๋–ป๊ฒŒ ๋งŒ๋“œ๋Š”๋ฐ?

 

express.js

"nodejs๋ฅผ ์œ„ํ•œ ๋น ๋ฅด๊ณ  ๊ฐœ๋ฐฉ์ ์ธ ๊ฐ„๊ฒฐํ•œ ์›น ํ”„๋ ˆ์ž„์›Œํฌ" ๋ผ๊ณ  express ์‚ฌ์ดํŠธ์—์„œ ์†Œ๊ฐœํ•˜๊ณ  ์žˆ๋„ค์š”.

์‘ ~ ๋ญ”์†Œ๋ฆฌ์ธ์ง€ ๋ชฐ๋ผ ~ ใ…‹ใ…‹

์œ„์—์„œ nodejs๋Š” http์„œ๋ฒ„๋ฅผ ๋‚ด์žฅํ•˜๊ณ ๋Š” ์žˆ์ง€๋งŒ, ์–ด๋–ค ์ฝ”๋“œ๋ฅผ ๊ตฌํ˜„ํ•ด์คŒ์œผ๋กœ์จ ์„œ๋ฒ„๋กœ ์‚ฌ์šฉํ•˜๋„๋ก ๊ตฌํ˜„ํ•ด์ค€๋‹ค๊ณ  ํ–ˆ์ฃ ~? ๊ทธ๋Ÿผ.. HTTP ํ†ต์‹ ์„ํ•ด์•ผํ•˜๋‹ˆ๊นŒ.. ํ†ต์‹ ๋ฐฉ๋ฒ•๋„ ๋ฐฐ์›Œ์•ผํ•˜๊ณ .. ํŒจํ‚ท์— ์ •๋ณด๋„ ์‹ค์–ด์•ผํ•˜๋‹ˆ๊นŒ.. ํŒจํ‚ท๋„ ๋ฐฐ์›Œ์•ผํ•˜๊ณ ..

์‘.. ์•ˆํ•ด..

๋ผ๊ณ  ์ƒ๊ฐ์ด ๋“ค๋•Œ!!ใ…‹ใ…‹ nodejs๋ฅผ ์„œ๋ฒ„๋กœ ์‰ฝ๊ฒŒ ๊ตฌ์„ฑํ•  ์ˆ˜ ์žˆ ์ˆ˜ ์žˆ๋„๋ก ํ•ด์ฃผ๋Š”๊ฒŒ ๋ฐ”๋กœ express ํ”„๋ ˆ์ž„์›Œํฌ์ž…๋‹ˆ๋‹ค!!

์ฆ‰, express๋Š” nodejs๋ฅผ ์‰ฝ๊ฒŒ ์„œ๋ฒ„๋กœ ๊ตฌ์„ฑํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋งŒ๋“  ํด๋ž˜์Šค์™€ Library๋“ค์„ ๋ชจ์•„๋‘” ๊ฒƒ์ด๋‹ค! ๋ผ๊ณ  ํ•  ์ˆ˜ ์žˆ๊ฒ ๋„ค์š”!! 

 

 

์ •๋ง ๊ฐ„๋‹จํ–ˆ์ฃ ? ใ…‹ใ…‹ ๋„ค! ์ €๋Š” iOS ๊ฐœ๋ฐœ์ž๋‹ˆ๊นŒ, ์š”์ •๋„ ๊ฐœ๋…๋งŒ ์ •๋ฆฌํ•ด๋‘๊ณ  ์ง€๋‚˜๊ฐ‘๋‹ˆ๋‹ค!!

 

์˜ค๋Š˜๋„ ๋ˆ„๊ตฐ๊ฐ€์—๊ฒŒ ๋„์›€์ด ๋˜์—ˆ๊ธธ ๋ฐ”๋ž˜์š” ๐Ÿ™

 

Comments