Skip to content

๐Ÿ’ป Web code examples for JavaScript Everywhere by Adam Scott, published by O'Reilly Media

License

Notifications You must be signed in to change notification settings

JPWon-1/javascript_everywhere_WEB_JP

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

47 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Project Diary

2021-05-29 : ๋ฆฌ์•กํŠธ๋ฅผ ์˜ค๋žœ๋งŒ์— ์จ๋ณด์•˜๋Š”๋ฐ, ๊ธฐ์ดˆ์ ์ธ๊ฒƒ๋งŒ ๋‹ค๋ฃจ์–ด ๋ณด์•˜์ง€๋งŒ ์ •๋ง์ด์ง€ ํ•˜๋‚˜๋„ ๊ธฐ์–ต์ด ์•ˆ๋‚˜์„œ ์ฒ˜์Œ๋ถ€ํ„ฐ ๋‹ค์‹œ ์‹œ์ž‘ํ•˜๋Š” ๊ธฐ๋ถ„์ด์—ˆ๋‹ค.

  • ์šฐ์„  npm library๋“ค์„ ๋ฒ„์ ผ์„ ๋งž์ถ”์–ด ์ฃผ์—ˆ๋Š”๋ฐ DevTools warning: SharedArrayBuffer will require cross-origin isolation ์–˜ ๋Š” ์™œ ์‚ฌ๋ผ์ง€์ง€ ์•Š๋Š”๊ฒƒ์ธ๊ฐ€.
  • ๊ธ€๋กœ๋ฒŒ ์Šคํƒ€์ผ , css-in-js ๋ฐฉ์‹์œผ๋กœ ์Šคํƒ€์ผ๋“ค์„ ์ ์šฉํ•ด์ฃผ์—ˆ๋‹ค.
    • src\components ํ•˜์œ„ ํด๋”์— Button, Header, Layout, Navigation ์„ ๋งŒ๋“ค์—ˆ๋‹ค
    • GlobalStyle์„ ๋งŒ๋“ค์–ด ํ”„๋กœ์ ํŠธ ์ „๋ฐ˜์— ์‚ฌ์šฉ ๋  css๋ฅผ ์žฌ์ •์˜ ํ•ด์ฃผ์—ˆ๋‹ค
component์˜ ์•ž๊ธ€์ž๋Š” ๋Œ€๋ฌธ์ž๋กœ ๋งŒ๋“ค์–ด์•ผ ํ•œ๋‹ค. ์ด์œ ๋Š” HTML ์š”์†Œ์™€์˜ ์ถฉ๋Œ์„ ํ”ผํ•˜๊ธฐ ์œ„ํ•ด์„œ๋‹ค.
  • ๊ฐ ํŽ˜์ด์ง€๋ณ„ ์ด๋™์„ ์œ„ํ•ด import { BrowserRouter as Router, Route } from 'react-router-dom'; ๋ฅผ ํ•ด์ฃผ์—ˆ๊ณ  ์‚ฌ์šฉ์€ ๋ฐ‘์—์™€ ๊ฐ™์ด
import { BrowserRouter as Router, Route } from 'react-router-dom';

const Pages = props => {
    return (
        <Router>
            <Layout>
                <Route exact path="/" component={Home} />
                <Route path="/mynotes" component={MyNotes} />
                <Route path="/favorites" component={Favorites} />
            </Layout>
        </Router>
    );
};

์ฒ˜๋Ÿผ ์ป๋‹ค.

2021-05-31

  • ์•„ํด๋กœ ํด๋ผ์ด์–ธํŠธ๋ฅผ ์…‹์—…ํ•ด์„œ ๋ฆฌ์•กํŠธ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜๊ณผ ํ•จ๊ป˜ ์ž‘๋™ํ•˜๊ณ  ์—ฌ๋Ÿฌ ๊ทธ๋ž˜ํ”„QL์ฟผ๋ฆฌ๋ฅผ UI์— ํ†ตํ•ฉํ•˜์˜€๋‹ค.

2021-06-03

  • ๊ทธ๋ž˜ํ”„ QL API๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์›น ์ธ์ฆ ์‹œ์Šคํ…œ์„ ๊ตฌ์ถ•. ๋ธŒ๋ผ์šฐ์ €์— JWT๋ฅผ ์ €์žฅํ•˜๊ณ , ์š”์ฒญ๋งˆ๋‹ค ํ† ํฐ์„ ์ „์†กํ•˜์—ฌ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ์ƒํƒœ๋ฅผ ์ถ”์ ํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋งŒ๋“ค์—ˆ๋‹ค.

2021-06-05

  • ํšŒ์›๊ฐ€์ž…๊ณผ ๋กœ๊ทธ์ธ์„ ๊ตฌํ˜„ํ•˜์˜€๋Š”๋ฐ...์ ์  ์ฑ…์ด ์„ค๋ช…์ด ์งง์•„์ง€๊ณ  ์˜คํƒ€๊ฐ€ ๋‚˜์˜ค๊ณ  ๊ธฐ์กด์— ๋งŒ๋“ค์–ด๋†“์€ ์†Œ์Šค์™€ ์—ฐ๋™์ด ์•ˆ๋˜๋Š” ์‚ฌํƒœ๊นŒ์ง€ ์ƒ๊ฒผ๋‹ค. ( ๊ธฐ์กด api ๊ตฌํ˜„ํ• ๋•Œ ๋กœ๊ทธ์ธ์€ username, email, password ๋กœ ์งฏ๋Š”๋ฐ web์—์„œ๋Š” ๋„˜๊ธฐ๋Š” ํŒŒ๋ผ๋ฏธํ„ฐ๊ฐ€ email, password ๋ฟ์ด๋ผ๋˜์ง€.. ) ์ ์  ์ด ์ฑ…์„ ๋‚ด๊ฐ€ ํ•˜๋Š”๊ฒŒ ์˜๋ฏธ๊ฐ€ ์žˆ๋‚˜ ์‹ถ๋‹ค. 225/386 ํŽ˜์ด์ง€๊นŒ์ง€ ์˜จ ์ƒํƒœ๋กœ..ํฌ๊ธฐํ•˜๊ธฐ๋„ ์• ๋งคํ•˜์ง€๋งŒ.... ์ด ์ฏค์—์„œ MongoDB ์™€ React ๊ทธ๋ฆฌ๊ณ  GraphQL์„ ๋ง›๋ดค๋‹ค๋Š” ๊ฒƒ์œผ๋กœ ๋งŒ์กฑํ•ด์•ผํ•˜๋‚˜? ๋ผ๋Š” ์ƒ๊ฐ์ด ๋“ ๋‹ค.

2021-06-05

  • ๊ฒŒ์‹œ๊ธ€์˜ CRUD๋ฅผ ๊ตฌํ˜„ํ•˜์˜€๋‹ค. ์ฑ…์ด ๊ฐˆ์ˆ˜๋ก ์ฝ”๋“œ์ค‘์‹ฌ์ด ๋œ๋‹ค...์„ค๋ช…์ด ์ข€ ๋ถ€์กฑํ•œ๋ฐ ๋ญ CRUD๊ฐ€ ์›๋ž˜ ๊ทธ๋Ÿฐ๊ฑฐ ์•„๋‹ˆ๊ฒ ๋‚˜ ์‹ถ๋‹ค. ๋ณ„๋„์˜ ๋กœ์ง์ด๋‚˜ ๊ทธ๋Ÿฐ๊ฑฐ ์—†์ด ๊ณ„์† ๋ฐ˜๋ณต๋˜๋Š” ์ฝ”๋“œ์˜€๋‹ค ๋‹ค์Œ 17์žฅ์—์„œ๋Š” ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐฐํฌ์ธ๋ฐ ์–ด๋–ป๊ฒŒ ํ•˜๊ฒŒ ๋ ์ง€ ๊ถ๊ธˆํ•˜๋‹ค. ๊ทธ๋Ÿฐ๋ฐ ๋ถ„๋ช…ํžˆ ์ด ์ฑ… ์•ž๋ถ€๋ถ„์—์„œ ๋งˆํฌ์—… ๊ธฐ๋ฐ˜์˜ ๊ธ€ ์ž‘์„ฑ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์ด๋ผ๊ณ  ํ–ˆ๋Š”๋ฐ..๋ญ๊ฐ€ ๋งˆํฌ์—… ๊ธฐ๋ฐ˜์ธ์ง€๋Š” ๋ชจ๋ฅด๊ฒ ๋‹ค.... ์ฒซ ๋žœ๋”ฉ ํŽ˜์ด์ง€๊ฐ€ ๋…ธ์…˜์ด๋ž‘ ๋‹ฎ์•˜๋‹ค์ •๋„? ๊ทธ๊ฑฐ ๋ง๊ณ ๋Š” ์—†๋‹ค. ์•„๋ฌด๋ž˜๋„ ์ฑ…์˜ ์™„์„ฑ๋„๋‚˜ ๋‚ด์šฉ๋ฉด์—์„œ ๋ง‰ ์—„์ฒญ๋‚˜๊ฒŒ ๋›ฐ์–ด๋‚œ ๊ฒƒ ๊ฐ™์ง„ ์•Š๋‹ค.

2021-06-05

  • ํ™ˆํŽ˜์ด์ง€ ๋กœ ๋ฐฐํฌ๊นŒ์ง€ ์™„๋ฃŒ api๋Š” heroku, web์€ netlify๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ฐฐํฌํ•˜์˜€๋‹ค. ๊นƒํ—™์„ ์‚ฌ์šฉํ•ด์„œ ์ž๋™์œผ๋กœ ์—ฐ๋™๋˜๊ฒŒ๋„ ํ•˜์˜€๋‹ค. ๊นƒํ—™์— ์ƒˆ๋กœ์šด ์‚ฌํ•ญ์ด ๋ฐ˜์˜๋˜๋ฉด ์žฌ๋นŒ๋“œํ•ด์„œ ์ž๋™๋ฐฐํฌ ๋  ๊ฒƒ์ด๋‹ค.

๊ทธ ๋‹ค์Œ์žฅ๋ถ€ํ„ฐ๋Š” ๋ฐ์Šคํฌํƒ‘๊ณผ ๋ชจ๋ฐ”์ผ ์•ฑ ๋ฐฐํฌ์ธ๋ฐ.. ์•„์ง ๋‚ด๊ฒŒ ๊ทธ๋ ‡๊ฒŒ ํ• ๋งŒํ•œ ์—ฌ๋ ฅ์ด ์—†๊ณ  ๊ฑฐ๊ธฐ๊นŒ์ง€ ๊ฐ€์•ผํ•˜๋‚˜ ์‹ถ์–ด์„œ ์—ฌ๊ธฐ๊นŒ์ง€๋งŒ ์ˆ˜์—…์„ ๋งˆ์น˜๊ณ  ๊ธฐ์กด์˜ ๊ฒƒ๋“ค์„ ์ข€ ๋” ๋‹ค๋“ฌ์–ด์„œ ๋‚ด ๊ฒƒ์œผ๋กœ ๋งŒ๋“œ๋Š”๋ฐ ์ฃผ๋ ฅํ•˜๊ณ ์ž ํ•œ๋‹ค. ๋!

About

๐Ÿ’ป Web code examples for JavaScript Everywhere by Adam Scott, published by O'Reilly Media

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.2%
  • HTML 1.8%