๋ถ๋ฅ ์ ์ฒด๋ณด๊ธฐ
![[React + Node ๊ฐ์ด ๋๋ ค์ก๊ธฐ] (5) react one-way data flow + ์์น ๋์ ๊ธฐ๋ฐ ๋ ์จ ์ฑ ๊ณ์ making](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FomP5K%2FbtrTfT8ddko%2FGXhgtWJPI1Vj5JYxIjcurK%2Fimg.png)
[React + Node ๊ฐ์ด ๋๋ ค์ก๊ธฐ] (5) react one-way data flow + ์์น ๋์ ๊ธฐ๋ฐ ๋ ์จ ์ฑ ๊ณ์ making
ํฌ์คํ ์์น ๋์๊ธฐ๋ฐ ๋ ์จ์ฑ(4)์ ์ด์ ๋ง๋ฌด๋ฆฌ ์์ App.js๊ฐ ๋ชจ๋ ๋ก์ง์ ๋ค ๊ฐ๊ณ ์๊ณ , ์ปดํฌ๋ํธ์ ๋ณด๋ด์ฃผ๋ ์์ผ๋ก ์์ ์ ์งํํด๋ณด๋๋ก ํ๋ค. react one-way data flow ๋๋ฌธ์ด๋ค. ์ปดํฌ๋ํธ ํ์ ๋ผ๋ฆฌ ๋ฐ์ดํฐ๋ฅผ ์ฃผ๊ณ ๋ฐ๊ธฐ๊ฐ ์๋นํ ์ด๋ ต๋ค. ๋ฆฌ์กํธ ํน์ง one-way reactive data flow https://tkssharma.gitbook.io/react-training/day-01/react-js-3-principles/one-way-data- The foundation of understanding component relationships in React and parent component hierarchy… Props stands for properties. It is ..
![[Java] ์๋ฐ List ์ธํฐํ์ด์ค ๊ตฌํ ArrayList vs LinkedList](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FdTXuoE%2FbtrS9rrKypg%2F0Mp0yOhIKPyBeSTGjWkwo1%2Fimg.png)
[Java] ์๋ฐ List ์ธํฐํ์ด์ค ๊ตฌํ ArrayList vs LinkedList
์ ํฌ์คํ ์ ์ด์ด์ ์์ฑํฉ๋๋ค. import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.Vector; public class Hello { public static void main(String[] args) { List words = List.of("Jisoo", "Lisa", "Jenny", "Rose"); List wordsArrayList = new ArrayList(words); wordsArrayList.add("GD"); System.out.println(wordsArrayList); // [Jisoo, Lisa, Jenny, Rose, GD] System.out.printl..
![[Java] ์๋ฐ List.of()๋ก ๋ง๋ ๋ถ๋ณ ๋ฆฌ์คํธ๋ฅผ ๊ฐ๋ณ ๋ฆฌ์คํธ๋ก ๋ฐ๊พธ๊ธฐ](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fb6JzpY%2FbtrTaCmdRX2%2FohbsYqOEX73JNaV9TkX1d0%2Fimg.png)
[Java] ์๋ฐ List.of()๋ก ๋ง๋ ๋ถ๋ณ ๋ฆฌ์คํธ๋ฅผ ๊ฐ๋ณ ๋ฆฌ์คํธ๋ก ๋ฐ๊พธ๊ธฐ
์ด๋ฒ ํฌ์คํ ์์๋ List.of()๋ก ๋ง๋ ๋ถ๋ณ ๋ฆฌ์คํธ(๋ด๋ถ ์ ๋ณด ๋ฐ๊ฟ ์ ์์)๋ฅผ ํ์ตํด๋ณด๊ณ , ์ด๋ฅผ ํตํด ๊ฐ๋ณ ๋ฆฌ์คํธ(๋ด๋ถ์ ๋ณด ๋ฐ๊ฟ ์ ์์)๋ฅผ ๋ง๋๋ ๋ฐฉ๋ฒ๊น์ง ์์๋ณธ๋ค. Collections - List - Set - Queue - Map ์๋ฐ๋ฅผ ๊ณต๋ถํ ๋ ํ๋ ์ต์ ๋ฒ์ + ํค์๋ ๊ตฌ๊ธ๋งํ์ฌ ์ ์ผ ์์ ๋์ค๋ ์ค๋ผํด ํฌํผ ์ผํฐ ๋ฌธ์๋ฅผ ์ด์ฌํ ์ฝ์ ๊ฒ. List ์ ์ https://docs.oracle.com/javase/9/docs/api/java/util/List.html ์ ๋ ฌ๋ ์ปฌ๋ ์ ( sequence๋ผ๊ณ ๋ ํจ ). ์ด ์ธํฐํ์ด์ค์ ์ฌ์ฉ์๋ ๋ชฉ๋ก์์ ๊ฐ ์์๊ฐ ์ฝ์ ๋๋ ์์น๋ฅผ ์ ํํ๊ฒ ์ ์ดํ ์ ์์ต๋๋ค. ์ฌ์ฉ์๋ ์ ์ ์ธ๋ฑ์ค(๋ชฉ๋ก์ ์์น)๋ก ์์์ ์ก์ธ์คํ๊ณ ๋ชฉ๋ก์ ์์๋ฅผ ๊ฒ์ํ ์ ์์ต๋๋ค...
![[ํด๋ฆฐ์ฝ๋] 1์ฅ ๊นจ๋ํ ์ฝ๋](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FsDBUx%2FbtrTa7ZvyXn%2FPVLvigEiJqMnDSiMKXrgY0%2Fimg.png)
[ํด๋ฆฐ์ฝ๋] 1์ฅ ๊นจ๋ํ ์ฝ๋
- ํ์ฌ๊ฐ ๋งํ ์์ธ์ ๋ฐ๋ก ๋์ ์ฝ๋ ํ์ด์๋ค. - ์์ฌ, ๊ด๋ฆฌ์์ ๊ด๊ณ์์ด, ์ข์ ์ฝ๋๋ฅผ ์ฌ์ํ๋ ์ผ์ ๋ฐ๋ก ํ๋ก๊ทธ๋๋จธ๋ค์ ์ฑ ์์ด๋ค. - ๋์ ์ฝ๋๋ฅผ ์์ฐํ๋ฉด ๊ธฐํ์ ๋ง์ถ์ง ๋ชปํ๋ค. - ๋นจ๋ฆฌ ๊ฐ๋ ์ ์ผํ ๋ฐฉ๋ฒ์, ์ธ์ ๋ ์ฝ๋๋ฅผ ์ต๋ํ ๊นจ๋ํ๊ฒ ์ ์งํ๋ ์ต๊ด์ด๋ค. - ๊นจ๋ํ ์ฝ๋๋ฅผ ์์ฑํ๋ ค๋ฉด '์ฒญ๊ฒฐ'์ด๋ผ๋ ๊ฐ๊ฐ์ ํ์ฉํด ์์ํ ๊ธฐ๋ฒ๋ค์ ์ ์ฉํ๋ ์ ์ ์ ๊ท์จ์ด ํ์ํ๋ค. ์ด์ ๋ '์ฝ๋ ๊ฐ๊ฐ'์ด๋ค. - '์ฝ๋ ๊ฐ๊ฐ'์ด ์๋ ํ๋ก๊ทธ๋๋จธ๋ ๋์ ๋ชจ๋์ ๋ณด๋ฉด ์ข์ ๋ชจ๋๋ก ๊ฐ์ ํ ๋ฐฉ์์ ๋ ์ฌ๋ฆฐ๋ค. - ํด๋ฆฐ ์ฝ๋๋, ์์ฑ์๊ฐ ์๋ ์ฌ๋์ด ์ฝ๊ธฐ์๋ ์ฝ๊ณ ๊ณ ์น๊ธฐ์๋ ์ฌ์ด ์ฝ๋์ด๋ค. ๋ํ ์ฝ๋๋ฅผ ์ฝ์ผ๋ฉด์ ์ง์ํ๋ ๊ธฐ๋ฅ์ ๊ฐ ๋ฃจํด์ด ๊ทธ๋๋ก ์ํํ๋ค๋ฉด ๊นจ๋ํ ์ฝ๋๋ค. (๋์ ๊ฐ๋ ์ฑ, ์ฌ์ด ์ ์ง๋ณด์, ์์ธก ๊ฐ๋ฅ์ฑ) - ๊นจ๋ํ..
![[Css][๋ฐ์ํ ์น] flex ์ด์ฉํ์ฌ div ๋ฐ์ค๋ฅผ ์ํ๋ ์์น๋ก ๋ด๋ฆฌ๊ธฐ](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FenvFKV%2FbtrS6YIYZIM%2Fu6kI4iGD2Je15JXmPrvQ2K%2Fimg.png)
[Css][๋ฐ์ํ ์น] flex ์ด์ฉํ์ฌ div ๋ฐ์ค๋ฅผ ์ํ๋ ์์น๋ก ๋ด๋ฆฌ๊ธฐ
๊ธฐ๋ณธ ์คํ : react ์ฌ๊ฑด์ ์ ๋ง ์ด ํฌ์คํ ์ ์ํ๋ ๋งํฌ์ ์ ์ํด ์ข์ถฉ์ฐ๋ css๋ฅผ ๋ง์ก๋ ๊ณผ์ ์ ๋ด์ ์์ ๊ธฐ์ด๋ค. ๋์๋ณ ํ์ฌ ๋ ์จ ์ ๋ณด ์ฑํ์ด์ง๋ฅผ ๋ง๋๋ ๊ณผ์ ์ค์ div ๋ฐ์ค๋ฅผ ์ ์ ํ ์์น๋ก ๋ด๋ฆฌ๊ณ ์ถ์๋ค. CSS position [css] position ์์์ ์์น ์ค์ CSS / POSITION position ํน์ง ์์์ ์์น๋ฅผ ๋ง์๋๋ก ์ค์ ํ๊ธฐ ์ํ ์์ฑ static, relative, absolute, fixed, sticky๋ก position์ ๊ฐ์ ์ค ์ ์๋ค. ์์น๋ฅผ ์ค์ ํ ๋์๋ top,right,left,bottom์ ์ฌ์ฉํ ์ ์๋ค. ์์ itjy2.tistory.com ์ ํฌ์คํ ์ ์ฐธ๊ณ ํ์ฌ, div๋ฅผ ์ํ๋ ์์น์ ์ฎ๊ฒจ๋ณด์๋ค. .container{ position:rel..
![[Git ์ค๋ฅ ํด๊ฒฐ]remote: Support for password auåthentication was removed on August 13, 2021](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbfqtNy%2FbtrS6X3haFC%2FLaz8Of4K2L2HazlGOrHWT1%2Fimg.png)
[Git ์ค๋ฅ ํด๊ฒฐ]remote: Support for password auåthentication was removed on August 13, 2021
https://dev.classmethod.jp/articles/resolving-github-token-authentication-errors/ GitHub ํ ํฐ ์ธ์ฆ ์๋ฌ ํด๊ฒฐ remote: Support for password authentication was removed. Please use a personal access token i git push ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ ๋ ๋์ค๋ ํ ํฐ ์ธ์ฆ ์๋ฌ๋ฅผ ํด๊ฒฐํ๋ ๋ฐฉ๋ฒ์ ๋ํด์ ์ ๋ฆฌํด ๋ดค์ต๋๋ค. dev.classmethod.jp remote: Support for password auåthentication was removed on August 13, 2021. remote: Please see https://docs.github.com/en/get-..
[Git] ์ ๋ฌด์ฉ, ๊ฐ์ธ์ฉ ๊น ๊ณ์ ๋ถ๋ฆฌ
https://www.daleseo.com/git-config/ git config ๋ช ๋ น์ด ์ฌ์ฉ๋ฒ Engineering Blog by Dale Seo www.daleseo.com https://awesometic.tistory.com/128 ๊น(git) - ํ๋ก์ ํธ/์ ์ฅ์๋ง๋ค ๋ค๋ฅธ ๊ณ์ ์ ๋ณด ์ฌ์ฉํ๊ธฐ ์ ์ฅ์๋ณ ๊ณ์ ์ค์ Command line ์์ git์ ์ฌ์ฉํ๋ ค๋ฉด, git ์ค์น ํ ๊ฐ๋จํ ์ค์ ๋ ๊ฐ์ง ์ ๋๋ ํด์ค์ผ ํธํด์. ๊ณ์ ๊ณผ ์ด๋ฆ ์ค์ ์ ํด์ฃผ๋ฉด git commit, git push ํ ๋๋ง๋ค ๊ณ์ ์ ๋ณด๋ฅผ ์ ๋ ฅํ์ง ์์๋ awesometic.tistory.com ๋ ํฌ๋ง๋ค ์๋์ ๊ฐ์ด ๊ธ๋ก๋ฒ๊ณผ ๋ก์ปฌ์ ์ ๊ตฌ๋ถํด์ฃผ๋ฉด ๋๋ค. //๊ฐ์ธ ํ๋ก์ ํธ ์์น์์ $ git config user.email mim..
![[React + Node ๊ฐ์ด ๋๋ ค์ก๊ธฐ] (4) ์์น ๋์ ๊ธฐ๋ฐ ๋ ์จ ์ฑ (api ์ฐ๊ฒฐ ๊ธฐ์ด์์
, UI์์
)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FFbRLz%2FbtrS6hUZVaN%2F8BhQr3cvHSBRk4MSutEj71%2Fimg.png)
[React + Node ๊ฐ์ด ๋๋ ค์ก๊ธฐ] (4) ์์น ๋์ ๊ธฐ๋ฐ ๋ ์จ ์ฑ (api ์ฐ๊ฒฐ ๊ธฐ์ด์์ , UI์์ )
1. ๊ธฐ๋ฅ ๋ช ์ธ์ //1. ์ฑ์ด ์คํ๋์๋ง์ ํ์ฌ ์์น ๊ธฐ๋ฐ์ ๋ ์จ๊ฐ ๋ณด์ธ๋ค. //2. ๋ ์จ ์ ๋ณด์๋ ๋์, ์ญ์จ, ํ์จ ๋ ์จ ์ํ //3. 5๊ฐ์ ๋ฒํผ์ด ์๋ค (1๊ฐ๋ ํ์ฌ ์์น, 4๊ฐ๋ ๋ค๋ฅธ ๋์) //4. ๋ก๋ฉ ์คํผ๋ ๊ธฐ๋ฅ ์ถ๊ฐ 2. weather api https://openweathermap.org/api Weather API - OpenWeatherMap Please, sign up to use our fast and easy-to-work weather APIs. As a start to use OpenWeather products, we recommend our One Call API 3.0. For more functionality, please consider our products, ..
[๋ฆฌํฉํฐ๋ง 2ํ] 12.11 ์ํผํด๋์ค๋ฅผ ์์์ผ๋ก ๋ฐ๊พธ๊ธฐ
1. ์ํผํด๋์ค๋ฅผ ์์์ผ๋ก ๋ฐ๊พธ์ด์ผ ํ ๋ ๊ธฐ๋ฅ์ ์จ์ ํ ์ฌ์ฉํ ์ ์๊ณ ์ด์ธ๋ฆฌ์ง ์์ ํด๋์ค๋ฅผ ์์ํ์ ๋, ์์์ ๋จผ์ ์ ์ฉํ๋ค๊ฐ ๋ฌธ์ ๊ฐ ์๊ฒผ์ ๋ ๊ฐ์ฒด ์งํฅ์์ ์์์ด ํผ๋๊ณผ ๋ณต์ก๋๋ฅผ ํค์ธ ์๋ ์๋ค. ์์์ ์๋ชป ์ ์ฉํ ์๋ก๋ ์๋ฐ์ ์คํ ํด๋์ค๊ฐ ์ ๋ช ํ๋ค. ์๋ฐ์ ์คํ์ ๋ฆฌ์คํธ๋ฅผ ์์ํ๊ณ ์๋๋ฐ, ๋ฐ์ดํฐ๋ฅผ ์ ์ฅํ๊ณ ์กฐ์ํ๋ ๋ฆฌ์คํธ์ ๊ธฐ๋ฅ์ ์ฌํ์ฉํ๊ฒ ๋ค๋ ์๊ฐ์ด ์ด๋ํ ๊ฒฐ๊ณผ๋ค. ์ต์ ์ ๋ฆฌ์คํธ(์ํผํด๋์ค)์ ์ฐ์ฐ ์ค ์คํ(์๋ธํด๋์ค)์๋ ์ ์ฉ๋์ง ์๋ ๊ฒ ๋ง์์๋ ๊ทธ ๋ชจ๋ ์ฐ์ฐ์ด ์คํ ์ธํฐํ์ด์ค์ ๊ทธ๋๋ก ๋ ธ์ถ๋๋ค๋ ๊ฒ ๋ฆฌ์ค์ฝํ ์นํ ์์น : ์๋ธ ํด๋์ค๋ ์ํผ ํด๋์ค ์๋ฆฌ๋ฅผ ๋์ฒดํ๋๋ผ๋ ์ ๋์ํด์ผ ํ๋ค. ์๋ฐ์ ์คํ์ฒ๋ผ, ์ํผํด๋์ค์ ๊ธฐ๋ฅ๋ค์ด ์๋ธํด๋์ค์ ์ด์ธ๋ฆฌ์ง ์๋๋ค๋ฉด ๊ทธ ๊ธฐ๋ฅ๋ค์ ์์์ ํตํด..
![[๋์์ธ ํจํด] Repository Pattern](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbrH0PD%2FbtrSW6gnyyZ%2FtDEiswo01Qtgqk22sbtm00%2Fimg.png)
[๋์์ธ ํจํด] Repository Pattern
https://youtu.be/x6C20zhZHw8 ๋ฆฌํฉํ ๋ง 2ํ์ ๊ณต๋ถํ๋ค๊ฐ Repository ํจํด์ด ๋์์ ๋ฐ๋ก ์ ๋ฆฌํด๋ณด๋ ค๊ณ ํ๋ค. Repository ํจํด์ด๋ ๋ฐ์ดํฐ์ ์ํธ์์ฉํ๋ ๋ฐ ํ์ํ ๋ ผ๋ฆฌ๋ฅผ ์บก์ํํ๋๋ฐ ์ค์ ์ ๋ ํด๋์ค ๋ชจ์์ผ๋ก ์ ์ํ ์ ์๋ค. ๋ ๊ตฌ์ฒด์ ์ผ๋ก ์ค๋ช ํ์๋ฉด, ๋ฐ์ดํฐ ์ถ์ฒ(๋ก์ปฌ DB, ์๋ฒ API ์๋ต ๋ฑ)์ ๊ด๊ณ ์์ด ๋์ผ ์ธํฐํ์ด์ค๋ก ๋ฐ์ดํฐ์ ์ ์ํ ์ ์๋๋ก ๋ ํฌ์งํ ๋ฆฌ๋ฅผ ๋ง๋ค์ด ๊ด๋ฆฌํ๋ ๊ฒ์ ๋งํ๋ค. ๋์ ๋ฐฐ๊ฒฝ ๋ฐ์ดํฐ๋ฅผ ์ฌ์ฉํ๋ Domain์์๋ ๋น์ฆ๋์ค ๋ก์ง์๋ง ์ง์คํ ์ ์์ผ๋ฉฐ ViewModel์ ๋ฐ์ดํฐ ์ถ์ฒ๋ฅผ ์ ๊ฒฝ ์ธ ํ์๊ฐ ์๊ณ ์ฌ๋ฌ Repository๋ฅผ ๊ณต์ ํ๋๋ผ๋ ์ผ๊ด๋ Interface๋ฅผ ํตํด ๋ฐ์ดํฐ์ ์ผ๊ด์ฑ์ ์ ์งํ ์ ์๋ค. ๋น์ฆ๋์ค ๋ก์ง์ ํ๋ก๊ทธ๋จ์ ํต..