should set as environment variableDomain setting > Build & deploy >https://www.freecodecamp.org/news/how-to-access-secret-api-keys-using-netlify-
1. controller setup ๋จผ์ ์ดํด๋ฅผ ์ํ ์คํค๋ง ์ฌ์ง ์ฌ์ ๋ก๋ ๐ key point ์ด๋ค ๋ชจ๋ธ์ ์ปจํธ๋กค๋ฌ๊ฐ ํ์ํ์ง ์๊ฐํด๋ณด๊ธฐ. no need to generate movie controller ์๋ํ๋ฉด ๋จผ์ movie ์ ๋ณด๋ค์ ๋ชจ๋ api๋ก ๊ฐ์ ธ์
datatypesurl:stringforiegn_keys:referencesassociationdependent: :destroyDestroying the children is ideal. You do that by setting dependent: :destroy o
credit ๊น๋ฒ๊ทธ https://www.youtube.com/watch?v=7gKtNC3b_S8html์ ์ค์ฒฉ๋์ด์๋ ๊ตฌ์กฐ.ex) div,body,html eventListner์ด ๋ฑ๋ก๋์ด์๋ค. => ์ด๋ฒคํธ ์ค์ฒฉ!div ํด๋ฆญ์, div์ ๋ถ๋ชจ ํ๊ทธ๋ค์ ๋ฑ๋ก๋
๐๐ผ Event referencehttps://developer.mozilla.org/ko/docs/Web/EventsDOM ์ด๋ฒคํธ๋ ๋ฐ์ํ ํฅ๋ฏธ๋ก์ด ๊ฒ์ ์ฝ๋์ ์๋ฆฌ๊ธฐ ์ํด ์ ๋ฌ๋ฉ๋๋ค. ๊ฐ ์ด๋ฒคํธ๋ Event ์ธํฐํ์ด์ค๋ฅผ ๊ธฐ๋ฐ์ผ๋กํ ๊ฐ์ฒด์ ์ํด ํํ๋๋ฉฐ
This keyword. 1. this๋ ์ค๋ธ์ ํธ ๋ด์ ๋ฉ์๋(ํจ์)์์ ์ฌ์ฉํ์ ๋, ๊ทธ ๋ฉ์๋๋ฅผ ๋ด๊ณ ์๋์ค๋ธ์ ํธ๋ฅผ ์ถ๋ ฅํด์ค๋ค A์ค๋ธ์ ํธ์์ console.log(this)๋ฅผ ์ถ๋ ฅํ๋ ํจ์๊ฐ ์๋ค๋ฉด, this๋ ๊ทธ A์ค๋ธ์ ํธ๋ฅผ ๊ฐ๋ฅดํจ๋ค. ๋ง์ฐฌ๊ฐ์ง๋ก ์ผ๋ฐํจ์
In javascript, I used to use DOM manipulation (querySelector, getElementById getElementByClassName etc) But in React, should use "Virtual DOM" so that
jsx ์ปดํฌ๋ํธ ํ์ผ์ด ๋ฐ๋ฒจ์ ์ด์ฉํด ๋ธ๋ผ์ฐ์ ๊ฐ ์ดํดํ ์ ์๋ ์์ js๋ก ๋ณํ์ ํ๊ณ ,๋ณํ๋ jsํ์ผ์ html๋ก ์ฐ๊ฒฐํ๋ ค๋ฉด, react-dom์ด ํ์ํ๋ค. ์ด๋ ReactDOM ํด๋์ค ์ render ํจ์๋ฅผ ์ด์ฉํด, ์ฐ๊ฒฐํ ์ ์๋ค.renderํจ์๋ ์ ์ฒด ๋ฌธ์ d
https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Array/splice๋ฐฐ์ด์ ๊ธฐ์กด ์์๋ฅผ ์ญ์ ๋๋ ๊ต์ฒดํ๊ฑฐ๋ ์ ์์๋ฅผ ์ถ๊ฐํ์ฌ ๋ฐฐ์ด์ ๋ด์ฉ์ ๋ณ๊ฒฝ๋ฐฐ์ด์ ํน์ ๊ตฌ๊ฐ์ ์ถ
This will add a hidden input field with an authenticity_token that ensures the POST request is coming from your website and not from another. ์ด๊ฒ ์ ๋ง ๋ญ๊น
Synchronous : ์ ํด์ง ์์์ ๋ฐ๋ผ ์ฝ๋ ์คํ, Execute the code block in order.Asynchronous: ์ธ์ ์ฝ๋๊ฐ ์คํ๋ ์ง ์์ธกํ ์ ์๋ ์ฝ๋ It doesn't execute the code block in order.ex -
์ฝ๋ฐฑํจ์ ์์ ์๋ ์ฝ๋ฐฑํจ์ ์์ ๋ ์กด์ฌํ๋ ์ฝ๋ฐฑํจ์ aka ์ฝ๋ฐฑ์ง์ฅaddEventListner๋ฅผ ์ฌ์ฉํ๋ค๋ณด๋ฉด ์ฝ๋ฐฑํจ์๋ฅผ ์ฌ์ฉํ๊ฒ ๋๋๋ฐ ์ฝ๋ฐฑํจ์์ ์ค์ฒฉ์ ๋ฉ๋ชจ๋ฆฌ ์ฑ๋ฅ์ ์ ํ์ํด๋ฐ๋ผ์ ์คํ ํจ์๋ ๋ฐ๋ก ํจ์๋ฅผ ๋ง๋ค์ด์ ๋ถ๋ฆฌ์ํค๋ ๊ฒ์ด ๋ฐ๋์งํ๋ค.๊ทธ๋ฆฌ๊ณ ๋ถ๋ฆฌํ ํจ์๋ฅผ
1.๋ถํธ์บ ํ ์์ฒด JSONํ์ผ์fetch()api๋ฅผ ์ฌ์ฉํด ๊ฐ๋จํ ์ฑํ ์ฑ์ ๋ง๋ค์ด ๋ณด์๋ค.I'm (Asynchronous JavaScript And XML, ๋น๋๊ธฐ์ JavaScript์ XML) - AJAX๋ ์๋ฒ์์ ์ถ๊ฐ ์ ๋ณด๋ฅผ ๋น๋๊ธฐ์ ์ผ๋ก ๊ฐ์ ธ์ฌ ์ ์๊ฒ ํด์ฃผ๋
disctinct ์ ๋ํด ์์๋ณด์๋ค - !
GROUP BY๋ฅผ ํ ๋ง๋๋ก ์ ์ํ์๋ฉด "์ค๋ณต๋์ง ์์ ์ ๋ณด๋ฅผ ๋ณด์ฌ์ฃผ๋ ๊ฒ" ์ ๋๋ค. ํ์ฉ ์๋ฅผ ๋จผ์ ๋ณด๋ฉด, (์ฃผ๋ก ๊ทธ๋ฃน ํจ์์ ํจ๊ป ์ฌ์ฉ๋๋ ์) ๋ฉ๋ก ์ฐจํธ๋ฅผ ๋ฝ๊ณ ์ถ์ต๋๋ค. (โ ์์๋ณ ์คํธ๋ฆฌ๋ฐ ํ์ ๋ด๋ฆผ์ฐจ์) ํ๋งค ๋ ์ํ ์ค ๋ฒ ์คํธ ์ํ์ ์๊ณ ์ถ์ต
flatten() ์ฌ๋ฌ๋ฐฐ์ด์ 1์ฐจ์ ํํ [] ๋ก ๋ง๋๋ ๋ฉ์๋.
rOpens a file for reading only. The file pointer is placed at the beginning of the file. This is the default mode.rbOpens a file for reading only in b
๋ณ์๊ฐ ์ธ๋ถ ์ํฅ์ ์ง์ ์ ์ผ๋ก ์ํฅ์ ๋ฐ์ง ์๊ฒ ์ ๋ณดํธํ๋ ๊ฒ์ด ์ค์ํจ. ๋ฐ์ดํฐ๋ ์ค์๋ฐ๋ผ์ ์บก์๋ ์ด์ ์ ํตํด ๋ณดํธ.๋ฉ์๋๋ก ์ทจ๊ธํด์ ์๋ฌ๋จ.๋ฉ์๋ ์์ด ์๋๋ผ ๋ฐ๊นฅ์์ c1์์ ์ง์ value๋ฅผ ์ฐ๋ ค๊ณ ํ์ผ๋ / ๋ฉ์๋ ์ธ๋ถ์์ ์ธ์คํด์ค ์ ๊ทผ์ ๋ฃจ๋น์์๋ ํ์ฉ ์ํจ
์ด ๋ฉ์๋์ ์ด๋ฆ์, ๋ฃจ๋น์์ ํน๋ณํ ์ทจ๊ธํ๋ ์ด๋ฆ = ์์ฑ์!๋์ค์ ์ธ์คํด์ค๊ฐ ์์ฑ๋๊ณ ์คํ๋ ๋ ์๋์ผ๋ก ์คํ๋๋ค๋ฉด,์ด ๋ฉ์๋์ ๋ด์ฉ์ผ๋ก ์คํ๋ ๊ฒ์ด๋ค. ์ฆ ์ด๊ธฐํ๋ฅผ ํ ์ ์๋๊ฒ ๋ง์น ์ฐ๋ฆฌ๊ฐ ์ปด ํค๋ฉด ๋ถํ ์ด๋ผ๋ ์ด๊ธฐํ๋ฅผ ํ๋ ๊ฒ์ฒ๋ผ, ๊ฐ์ฒด๋ฅผ ๋ง๋ค๋ ์ด๊ธฐํํด์ผํ๋
๊ฐ์ฒด ์งํฅ ํ๋ก๊ทธ๋๋ฐ๋ชจ๋์ ํตํด ๋ณต์กํ ์ฝ๋๋ฅผ ๋จ์ํ์ํฌ ์ ์์๋ค like ์๋ฉ๊ณต๊ฐ. ๊ทธ๋ฌํ ์ฐ์ฅ์ ์์์ ์ง์ ๋ ๊ฐ๋ ์ด ๋ฐ๋ก ๊ฐ์ฒด์ด๋ค. object์ด๋ค. Object๋ฅผ ์ชผ๊ฐ๋ณด๋ฉด Class + instance๊ฐ ์๋ค. ์ด(์ฌ๋ก, ๊ตฌ์ฒด์ ์ธ ์์ ) ๋ง์ ์ต์ํด์ง ๊ฒ. !ํฌ