๋ชฉ๋ก๐ŸŠ Grammar (7)

๐Ÿค ์€์ง€log ๐Ÿค

์›น์Šคํ€˜์–ด ์ •๋ฆฌ (์ˆ˜์ •์ค‘)

์ง€๋‚œ 4์›” ๋ถ€ํ„ฐ iframwork ์—์„œ ์›น์Šคํ€˜์–ด๋กœ ๋ณ€๊ฒฝํ•˜๋Š” ํŒŒ์ด๋‚ธ์…œ ํ”„๋กœ์ ํŠธ์— ์ฐธ์—ฌ์ค‘์ด๋‹ค. ์‚ฌ์‹ค,, ์›น์Šคํ€˜์–ด๋ผ๋Š” ํ”„๋ ˆ์ž„์›Œํฌ ์ž์ฒด๋ฅผ ์ด๋ฒˆ ํ”„๋กœ์ ํŠธ๋•Œ์— ์ฒ˜์Œ ๋“ค์–ด๋ณด๊ธฐ๋„ ํ•˜์˜€๊ณ  ๊ทธ๋™์•ˆ ์‚ฌ์šฉํ•˜๋˜ ๋ฐฉ์‹๊ณผ ๋‹ค๋ฅธ์ ์ด ๋งŽ์•„์„œ ๋งŽ์ด ํ•ด๋งค๋Š” ์ค‘์ด๋‹ค ใ… ใ…  (์•„์ง๊นŒ์ง€๋„..) ์›น์Šคํ€˜์–ด ๊ต์œก ๊ฐ•์˜, ๊ตฌ๊ธ€ ๊ฒ€์ƒ‰ ์—์„œ ๋‚ด๊ฐ€ ์‹ค์—…๋ฌด์—์„œ ์‚ฌ์šฉํ–ˆ๋˜ ๋ถ€๋ถ„๋“ค๋งŒ ์ •๋ฆฌํ•ด๋ณด์•˜๋‹ค. script์—์„œ๋Š” javascript์˜ ๋กœ์ง์„ ์ž‘์„ฑํ•œ๋‹ค. websquare5 ํŒŒ์ผ์„ ์ƒ์„ฑํ•˜๋ฉด onpageload-ํŽ˜์ด์ง€๋กœ๋”ฉ ํ›„ ์‹คํ–‰ ๊ฐ€ ์ž๋™ ๋“ฑ๋ก๋œ๋‹ค. scwin.onpageload = function() { }; ์›น์Šคํ€˜์–ด 5์—์„œ๋Š” ๊ธฐ๋ณธ namespace๊ธฐ๋ฐ˜์˜ ์ฝ”๋”ฉ์„ ํ•˜๋ฉฐ default๋กœ ์‚ฌ์šฉํ•˜๋Š” ๊ฐ์ฒด์˜ ๋ช…์€ scwin์ด๋‹ค. DataColletion์—์„œ๋Š” data๊ฐ์ฒด๋ฅผ ..

๐ŸŠ Grammar 2023. 6. 5. 14:25
CI/CD

CI/CD ๋ž€? CI ๋Š” ๊ฐœ๋ฐœ์ž๋ฅผ ์œ„ํ•œ ์ž๋™ํ™” ํ”„๋กœ์„ธ์Šค์ธ ์ง€์†์ ์ธ ํ†ตํ•ฉ ( Continuous Integration ) ์ง€์†์ ์ธ ํ†ตํ•ฉ ์ด๋ž€ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ์ƒˆ๋กœ์šด ์ฝ”๋“œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ์ •๊ธฐ์ ์œผ๋กœ ๋นŒ๋“œ/ ํ…Œ์ŠคํŠธ ๋˜์–ด ๊ณต์œ  Repository์— (ex. git,github) ํ†ตํ•ฉํ•˜๋Š”๊ฒƒ์„ ์˜๋ฏธ ํ•œ๋‹ค. ๋‹ค์ˆ˜์˜ ๊ฐœ๋ฐœ์ž๊ฐ€ ํ•œ ํŒ€์œผ๋กœ ์ž‘์—…ํ•  ๊ฒฝ์šฐ, ๊ณต์œ  ๋ฆฌํฌ์ง€ํ† ๋ฆฌ์— ๋งŽ์€ commit๋“ค์ด ์Œ“์ด๊ฒŒ ๋˜๋Š”๋ฐ ๊ทธ๋•Œ๋งˆ๋‹ค ์ถฉ๋Œ ํ• ์ˆ˜ ์žˆ๋Š” ์ฝ”๋“œ๋“ค์„ ์ž๋™ํ™”๋œ ๋นŒ๋“œ&ํ…Œ์ŠคํŠธ๋กœ ๋ฐฉ์ง€ํ• ์ˆ˜ ์žˆ๋‹ค. CD ๋Š” ์ง€์†์ ์ธ ๋ฐฐํฌ ( Continuous Deployment ) or ์ง€์†์ ์ธ ์ œ๊ณต ( Continuous Delivery ) ๋ฐฐํฌ ๋‹จ๊ณ„์—์„œ “์ˆ˜๋™์ " ์œผ๋กœ ๋ฐฐํฌํ•˜๋Š”๊ฒƒ์ด ์ง€์†์ ์ธ ์ œ๊ณต ( Continuous Delivery ) ์ด๊ณ  “์ž๋™ํ™”” ๋กœ ..

๐ŸŠ Grammar 2022. 11. 1. 14:56
REST API

๐ŸŽฃ REST API : ํ”„๋ก ํŠธ์—”๋“œ ์›น์—์„œ ์„œ๋ฒ„์— ๋ฐ์ดํ„ฐ๋ฅผ ์š”์ฒญํ•˜๊ฑฐ๋‚˜ (๋ฐฐ๋‹ฌ์•ฑ์—์„œ ์„œ๋ฒ„์— ์ฃผ๋ฌธ์„ ๋„ฃ๊ฑฐ๋‚˜ ๋“ฑ) ์ด๋Ÿฐ ์„œ๋น„์Šค๋“ค์—์„œ ์‚ฌ์šฉ๋˜๋Š” ๊ฒƒ์ด REST ๋ž€ ํ˜•์‹์˜ API ์ด๋‹ค. ๊ฐ ์š”์ฒญ์ด ์–ด๋–ค ๋™์ž‘์ด๋‚˜ ์ •๋ณด๋ฅผ ์œ„ํ•œ๊ฒƒ์ธ์ง€๋ฅผ ๊ทธ ์š”์ฒญ์˜ ๋ชจ์Šต ์ž์ฒด๋กœ ์ถ”๋ก ์ด ๊ฐ€๋Šฅํ•˜๋‹ค. - ๋ ˆ์ŠคํŠธํ’€ํ•˜๊ฒŒ ๋งŒ๋“  API๋Š” ์š”์ฒญ์„ ๋ณด๋‚ด๋Š” ์ฃผ์†Œ๋งŒ์œผ๋กœ๋„ ๋Œ€๋žต ์ด๊ฒŒ ๋ญ˜ ํ•˜๋Š” ์š”์ฒญ์ธ์ง€ ํŒŒ์•…์ด ๊ฐ€๋Šฅํ•˜๋‹ค. ์„œ๋ฒ„์— REST API๋กœ ์š”์ฒญ์„ ๋ณด๋‚ผ๋•Œ๋Š” HTTP๋ผ๋Š” ๊ทœ์•ฝ์— ๋”ฐ๋ผ ์‹ ํ˜ธ๋ฅผ ์ „์†กํ•œ๋‹ค. ๐ŸŽฃ REST API ์—์„œ ์ฃผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ๋ฉ”์†Œ๋“œ : GET : ๋ฐ์ดํ„ฐ๋ฅผ Read, ์กฐํšŒ POST : Create, ์ƒˆ๋กœ์šด ์ •๋ณด ์ถ”๊ฐ€ DELETE : Delete, ์ •๋ณด ์‚ญ์ œ PUT : Update, ์ •๋ณด๋ฅผ ํ†ต์งธ๋กœ ๋ณ€๊ฒฝํ• ๋•Œ PATCH : Update, ์ •๋ณด๋ฅผ ์ผ๋ถ€๋งŒ ๋ณ€..

๐ŸŠ Grammar 2022. 10. 23. 14:49
jQuery ์™€ AJAX

jQuery : ์—ฌ๋Ÿฌ ๋ธŒ๋ผ์šฐ์ €์—์„œ ์ž‘๋™ํ•˜๋Š” ์‚ฌ์šฉํ•˜๊ธฐ ์‰ฌ์šด API๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ HTML ๋ฌธ์„œ ํƒ์ƒ‰ ๋ฐ ์กฐ์ž‘, ์ด๋ฒคํŠธ ์ฒ˜๋ฆฌ, ์• ๋‹ˆ๋ฉ”์ด์…˜ ๋ฐ Ajax์™€ ๊ฐ™์€ ์ž‘์—…์„ ํ›จ์”ฌ ๋” ๊ฐ„๋‹จํ•˜๊ฒŒ ๋งŒ๋“œ๋Š” JavaScript ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ Using jQuery with a CDN : AJAX ( Asynchronous JavaScript and XML ) : ์„œ๋ฒ„์™€ ํ†ต์‹ ํ•˜๊ธฐ ์œ„ํ•ด XML Http Request ๊ฐ์ฒด๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์„ ๋งํ•œ๋‹ค. JSON XML HTML ์ผ๋ฐ˜ ํ…์ŠคํŠธ ํ˜•์‹ ๋“ฑ์„ ํฌํ•จํ•œ ๋‹ค์–‘ํ•œ ํฌ๋งท์„ ์ฃผ๊ณ  ๋ฐ›์„ ์ˆ˜ ์žˆ๋‹ค. AJAX๋Š” ๋น ๋ฅด๊ฒŒ ๋™์ž‘ํ•˜๋Š” ๋™์ ์ธ ์›น ํŽ˜์ด์ง€๋ฅผ ๋งŒ๋“ค๊ธฐ ์œ„ํ•œ ๊ฐœ๋ฐœ ๊ธฐ๋ฒ•์˜ ํ•˜๋‚˜์ด๋ฉฐ, AJAX์˜ ๊ฐ•๋ ฅํ•œ ํŠน์ง•์€ ์›น ํŽ˜์ด์ง€ ์ „์ฒด๋ฅผ ๋ฆฌํ”„๋ ˆ์‰ฌ ํ•˜์ง€ ์•Š๊ณ ๋„ ์›น ํŽ˜์ด์ง€์˜ ์ผ๋ถ€๋ถ„๋งŒ์„ ๊ฐฑ์‹ ํ•  ์ˆ˜ ์žˆ๋‹ค. ์ฆ‰ Ajax๋ฅผ ..

๐ŸŠ Grammar 2022. 10. 23. 14:47