greatsumini / greatsumini.github.io Goto Github PK
View Code? Open in Web Editor NEWmy blog ๐จ๐ปโ๐ป
Home Page: https://sumini.dev
License: BSD Zero Clause License
my blog ๐จ๐ปโ๐ป
Home Page: https://sumini.dev
License: BSD Zero Clause License
๋ฌธ์ ์ (์ ํ)
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
ํด๊ฒฐ์ฑ
A clear and concise description of what you want to happen.
๋ค๋ฅธ ํด๊ฒฐ์ฑ
(์ ํ)
A clear and concise description of any alternative solutions or features you've considered.
์ถ๊ฐ ์ค๋ช
Add any other context or screenshots about the feature request here. (๋ ํผ๋ฐ์ค ๋ฑ)
ํฌํ ์ต, ์ผ๋ฌ์คํธ๋ ์ดํฐ ์ถ๊ฐ
์ค๋ช
next-ga ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๋จ์ ๋ ๊ฐ์ด ์ค๋ช
์ฐธ๊ณ ๋งํฌ
๋ด์ฉ
1 ์ถ์ถํ๊ณ ํ์ํ๋ ์์ด์ฝ์ ๋๋ฅธ๋ค
2 ์ฐ์ธก ๋๊ตฌ๋ชจ์ ํ๋จ export๋ฅผ ๋๋ฅธ๋ค
3 ์ต์
์ svg๋ก ๋ณ๊ฒฝํ๋ค
4 ๋ค์ด ํ ์ฝ๋๊ฐ ๊ธธ๊ฑฐ๋ ๋๋ฝ๋ค๋ฉด https://jakearchibald.github.io/svgomg/ ์ฌ์ดํธ๋ก ๋ค์ด๊ฐ์ ๋ฐ์ svg๋ฅผ ๋๋กญํ๋ค
5 ์ต์
๊ฐ์ ๋ค์๊ณผ ๊ฐ์ด ๋ง์ถ๊ณ ์ฌ๋ค์ดํ๋ค
๊ณ ๋ ค์ฌํญ
์ด๋ฅผ ์ํด gatsby-node์์ posts, projects๋ฅผ ๋ถ๋ฆฌํ ํ ๊ฐ๊ฐ ํ์ด์ง๋ฅผ ์์ฑํด์ผํ๋ค.
์ถ๊ฐ
posts page์์ edges์ tags ๋ชจ๋ posts๋ง ๊ฐ์ ธ์ค๊ธฐ ์ํด์ allMarkdownRemark์ category filtering์ ์ถ๊ฐํด์ผํจ
์ค๋ช
์ ํํ ๋ช
์นญ์ custom path mapping.
์ฌ์ค ๋ชจ๋ typescript ํ๋ก์ ํธ์ ์ ์ฉ๊ฐ๋ฅํ์ง๋ง, ์ ๋ชฉ์ React๋ฅผ ์ฐ๋๊ฒ ์ ์
๋ฅ ์ด ์ข์๋ฏ
์ด๊ฑฐ ๊ฒ์ํ๋ฉด ์๊ทผ ์ ๋์ด
์ฐธ๊ณ ๋งํฌ
๋ด์ฉ
์ ๊ณง๋ด. ์ข ์ด๋ ค์ธ๋ฏ
์ฐธ๊ณ ๋งํฌ
none
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
react
, react-dom
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
styled-components
, @types/styled-components
)react-typography
, typography
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)gatsby
, gatsby-plugin-canonical-urls
, gatsby-plugin-feed
, gatsby-plugin-google-analytics
, gatsby-plugin-image
, gatsby-plugin-manifest
, gatsby-plugin-offline
, gatsby-plugin-react-helmet
, gatsby-plugin-sharp
, gatsby-plugin-sitemap
, gatsby-plugin-styled-components
, gatsby-plugin-typescript
, gatsby-plugin-typography
, gatsby-remark-autolink-headers
, gatsby-remark-copy-linked-files
, gatsby-remark-images
, gatsby-remark-prismjs
, gatsby-remark-responsive-iframe
, gatsby-remark-smartypants
, gatsby-source-filesystem
, gatsby-transformer-remark
, gatsby-transformer-sharp
).github/workflows/cd.yml
actions/checkout v3
actions/setup-node v3
actions/cache v3
JamesIves/github-pages-deploy-action v4.4.1
.github/workflows/ci.yml
actions/checkout v3
actions/setup-node v3
actions/cache v3
package.json
babel-plugin-styled-components 2.0.7
disqus-react 1.1.5
dotenv 16.0.3
gatsby 4.25.7
gatsby-image 3.11.0
gatsby-plugin-canonical-urls 4.25.0
gatsby-plugin-feed 4.25.0
gatsby-plugin-google-analytics 4.25.0
gatsby-plugin-image 2.25.0
gatsby-plugin-manifest 4.25.0
gatsby-plugin-offline 5.25.0
gatsby-plugin-react-helmet 5.25.0
gatsby-plugin-resolve-src 2.1.0
gatsby-plugin-sharp 4.25.1
gatsby-plugin-sitemap 5.25.0
gatsby-plugin-styled-components 5.25.0
gatsby-plugin-typescript 4.25.0
gatsby-plugin-typography 4.25.0
gatsby-remark-autolink-headers 5.25.0
gatsby-remark-copy-linked-files 5.25.0
gatsby-remark-images 6.25.0
gatsby-remark-prismjs 6.25.0
gatsby-remark-relative-images 2.0.2
gatsby-remark-responsive-iframe 5.25.0
gatsby-remark-smartypants 5.25.0
gatsby-source-filesystem 4.25.0
gatsby-transformer-remark 5.25.1
gatsby-transformer-sharp 4.25.0
moment 2.29.4
prismjs 1.29.0
react 18.2.0
react-adsense 0.1.0
react-dom 18.2.0
react-helmet 6.1.0
react-typography 0.16.20
styled-components 5.3.10
typeface-merriweather 1.1.13
typeface-montserrat 1.1.13
typography 0.16.21
typography-theme-wordpress-2016 0.16.19
@types/styled-components 5.1.26
@typescript-eslint/eslint-plugin 5.62.0
@typescript-eslint/parser 5.62.0
eslint 8.46.0
eslint-config-prettier 9.0.0
eslint-plugin-prettier 5.0.0
eslint-plugin-react 7.33.1
gh-pages 5.0.0
prettier 3.0.1
typescript 5.1.6
https://www.gatsbyjs.com/docs/adding-search/
https://www.gatsbyjs.com/docs/adding-search-with-algolia/
algolia๋ฅผ ์ฌ์ฉํด์ ํ๋ฌ 1๋งํ๊น์ง ๋ฌดํ์ผ๋ก ์ฆ๊ธฐ์
์ค๋ช
ghpage๋ฅผ ํตํ cd๋ฅผ ๊ตฌํํ์ ๊ฒฝ์ฐ ์๊ฐ๋ณด๋ค ๊น๋ค๋ก์.
gatsby + github action + ghpage CD ๊ตฌํํ๋ ๋ฒ ์์ฑ์ด ์ ํ๋ผ์ผํจ
์ฐธ๊ณ ๋งํฌ
์ถ๊ฐํ ๋ด์ฉ
์ฐธ๊ณ ๋งํฌ
๋ด์ฉ
๋งฅ๋ฝ
์ต์๋ฏผ 4:18 PM
fab deploy๊ฐ ๊ทธ๋ฅ ํฐ๋ฏธ๋ ์ด์ด์ ํ๋ฉด ์ ๋๋ค์
4:18
virtual env ๋๋ฌธ์ธ๊ฐ?
ํ๊ท์ฃผ 4:19 PM
fab deploy:prod ์๊ฑฐ?
์ต์๋ฏผ 4:19 PM
fab ๋ช
๋ น์ด๋ฅผ ๋ชป ์ฐพ๋น
4:19
์ ใ
ใ
4:19
ํ์ด์ฐธ ํฐ๋ฏธ๋์์ ๋๋๋ฐ
ํ๊ท์ฃผ 4:19 PM
ํน์ ๋๋ ํ ๋ฆฌ๊ฐ ์ด๋์ ธ
์ต์๋ฏผ 4:19 PM
๋ฃจํธ ๋๋ ํ ๋ฆฌ์์ด๋ค
4:19
ํ๋ก์ ํธ ๋ฃจํธ
ํ๊ท์ฃผ 4:19 PM
pyenv activate pickk-biz ํด๋ด
์๋น
์ต์๋ฏผ 4:19 PM
zsh: cannot find command fab ์ฒ๋ผ
4:19
์ผํค
4:21
Failed to activate virtualenv.
Perhaps pyenv-virtualenv has not been loaded into your shell properly.
Please restart current shell and try again.
4:21
ํ ์๋๋ค์ฌ
4:21
๊ทธ๋ฅ ํ์ด์ฐธ์์ ํ์ด๋ค
4:21
ใ
ใ
ใ
ํ๊ท์ฃผ 4:22 PM
๊ฐ์ํ๊ฒฝ ์์ผ์ ธ์๊ทธ๋ฐ๊ฑฐ๊ฐ์๋ฐ
4:22
vi ~/.zshrc ์์
4:22
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
4:22
์ถ๊ฐํด์ผํ ๋ฃ
์ต์๋ฏผ 4:24 PM
์ค
4:24
์ฑ๊ณตํ์ด
4:24
ใ
ใ
ใ
ใ
ใ
ใ
4:24
๊ฐ์ฌํฉ๋๋ค
๋ด์ฉ
์ฐธ๊ณ ๋งํฌ
ํ๋น์ฆ ํ๋ก์ ํธ items/views
๋ด์ฉ
์ฐธ๊ณ ๋งํฌ
์ฐธ๊ณ ๋งํฌ : https://www.gatsbyjs.com/docs/adding-comments/
์ค๋ช
์ ๊ณง๋ด
๋ด์ฉ
pickk-crawl, pickk-admin์์ ๊ตฌํํ ๋ฐฉ์ ์๊ฐํ๊ธฐ. ๋ ๋ค ๊ฒ์ํ์ ๋ ๋์ค๋๊ฑฐ ์์ด์ ๊ฐ๊ฟ์
์ฃผ์
Django migration conflict ๋ฌ์ ๋ ํด๊ฒฐํ๋ ๋ฐฉ๋ฒ
์ด๋ฏธ์ง
์ถ๊ฐ์ค๋ช
# conflicted migration files ์ญ์
rm 0069_add_selects_request.py
rm 0070_fix_selects_request_sns_link,content.py
# migration ๋กค๋ฐฑ ํ remote ์ ์ฉ
./manage.py migrate items 0068_add_follwers_count.py
./manage.py migrate
# migration ์ฌ์์ฑ
./manage.py makemigrations items
์ค๋ช
(์๋ฆฌ์ฆ๋ก ์์ฑํด์ผํ ๋ฏ)
Next.js๋ Gatsby๋ฅผ ๋ฐ๋ก ์์ฑํด๋ ์ข๊ฒ ๋ค.
์ฐธ๊ณ ๋งํฌ
๋ด์ฉ
๋ด๊ฐ ๊ตฌ๊ธ ๋๋ฉ์ธ์ ์ ํํ ์ด์ : ๊ณ ๋๋ ์์ด๋ ๊ธฐ์ตํ๊ธฐ ๊ท์ฐฎ์. dev ๋๋ฉ์ธ์ด ์ธ๊ณ ๋ฉ์์ (์ฐ12๋ฌ๋ฌ)
๊ฑฐ์ ๊ณต์๋ฌธ์ ๋ฒ์ญ
์ฐธ๊ณ ๋งํฌ
์ด๋ฏธ์ง
๋ด์ฉ
๊ทธ๋ฅ data๋ง ๋ง๋๋ ค๋ ๊ฑฐ๋ฉด ๊ตณ์ด ๊ฐ์ฒด๋ฅผ ์์ฑํ ํ์๊น์ง๋ ์์ผ๋๊น selects_request_address_factory.stub() ์ ํตํด์ ๋ฐ์ดํฐ๋ง ๊ฐ์ ธ์ค๊ณ ๋๋น์ ์ ์ฅ์ ์ํ๋ ๋ฐฉ๋ฒ์ ํํ ์ ์๋ค.
.stub().dict ๋ฅผ ์ฌ์ฉํ๋ฉด ํด๋น ๋ฐ์ดํฐ๋ฅผ dict ํํ๋ก ๊ฐ์ ธ์ฌ ์ ์์
์ค๋ช
globalStyle๋ ๊ฐ์ด ์์ฑ
์ฐธ๊ณ ๋งํฌ
๋ด์ฉ
์ฐธ๊ณ ๋งํฌ
ํํ ์ง๊ธ
3:45
์
๋ ํธ๋ฆฌํ์คํธ ๋ฆฌ์คํธ ์ค๋๋ง๋ณ๊ฒฝ + ํ
์คํธ ์ถ๊ฐ ๋๋๊ณ
3:45
์ฌ๋ ๋
ธํฐ ์ ๊ฐ๋์ง ํ
์คํธ ํ๋ ค๋๋ฐ
3:45
runserverํด์ localhost์ ๋์์ง๊ฑฐ gui๋ก json์
๋ ฅ-postํ๋๊ฒ ์ต์ ์ด์ผ??
3:45
์๋ ๋ ์ฐ์ํ๋ฐฉ๋ฒ ์๋์
ํ๊ท์ฃผ 3:46 PM
๊ทธ ์ฝ์์์ selectsrequest object ๊ฐ์ ธ์จ๋ค์์
3:46
send_slack() ํด๋ณด๋ฉด ๋์ง์์ผ๊น?? ์ด์ ์๊ธฐํ๊ฒ ๊ทธ ๋ฐฉ๋ฒ์ด์์ด
์ต์๋ฏผ 3:46 PM
์ํ ๊ทธ ์ธ์คํด์ค๋ ์ด๋ป๊ฒ ์์ฑํด??
ํ๊ท์ฃผ 3:46 PM
๊ทธ๊ฒ ๋ฉ์๋ ์์ฒด๋ฅผ ๋ฑ ํ
์คํธํ๋ ๋ฐฉ๋ฒ์ธ๊ฑฐ ๊ฐ๊ณ
์ต์๋ฏผ 3:46 PM
SelectsRequest().send_slack() ํ๋ฉด๋๋?
3:47
SelectsRequestModel().send_slack()
ํ๊ท์ฃผ 3:47 PM
sr = SelectsRequest.objects.last()
sr.send_slace()
์์ ์ด๋ ๊ฒํ๋ฉด๋ผ
์ต์๋ฏผ 3:47 PM
address data ์ ๋ฃ์ด์ค๋๋ผ??
3:47
์ ์ํ
3:47
๊ทธ๋ผ ์์ฑ๋๊ฒ ์๊ธดํด์ผ๊ฒ ๋ค ๋๋น์
ํ๊ท์ฃผ 3:47 PM
(๋๋น์ ๋ฐ์ดํฐ๊ฐ ์๋ค๋์ ์ ํ์)
3:47
ใ
์น
์ต์๋ฏผ 3:47 PM
์คํค ใ
ใ
ใ
ใ
3:47
๊ฐ์ฌํฉ๋๋ค
ํ๊ท์ฃผ 3:47 PM
ํฉํ ๋ฆฌ๊ฐ์๊ฑฐ๋ก ํ๋ ๋ง๋ค์ด์ฃผ๋ฉด๋๊ฒ์ง
3:47
์ค์ผ ์๋๋ฉด ์ง์ง์ฐ์ํ๋ฐฉ๋ฒ์
์ต์๋ฏผ 3:47 PM
์ค์ผ์ด ์ข์๊ฑฐ ๋ฐฐ์๊ฐ๋๋ค
3:47
์์
ํ๊ท์ฃผ 3:47 PM
ํ
์คํธ์ฝ๋๋ฅผ ์ง๋๊ฑด๋ฐ
3:47
๊ทธ
์ต์๋ฏผ 3:48 PM
์์ใ
์ผ์
3:48
๊ทธ ์ค์ ์ ๋ฎ์ด์จ์ผํฅํ
๋ฐ
3:48
์๊ทธ๋ ๋ฌด์ํ๋ ์ค์
ํ๊ท์ฃผ 3:51 PM
mocker ๋ผ๋ ๊ฐ๋
์ด ๋์ค๋๋ฐ ๊ทธ๊ฑด ์ด๊ฑฐ ์ฐธ๊ณ ํด๋ณด๋ฉด ๋ ๊ฑฐ๊ฐ๊ตฌ
https://docs.python.org/3/library/unittest.mock.html#patch
image.png
image.png
์ต์๋ฏผ 3:51 PM
์ค mock ๋ฆฌ์กํธ ํ
์คํธํ ๋๋ ์ฐ๋๋ฐ
3:51
์์ฌํจ์ ๋ง๋๋๊ฑฐ
3:52
์ํ ์ ๋ ๊ฒ ํ๋๊ฑฐ๊ตฌ๋
ํ๊ท์ฃผ 3:52 PM
์ด ํ
์คํธ๋ ๊ฒฐ๊ตญ _send_slack ๊น์ง ํธ์ถ์ด ์ ๋๋์ง ๋ณด๋ ํ
์คํธ๋ผ๊ณ ๋ณด๋ฉด๋ผ์ ์ค์ ์ฌ๋ api๊น์ง ์ ํ์ง๋์ง๋ ํ์ธ ๋ชปํ๋๊น ์ฌ๋ api์์ ํ์ฉํ์ง ์๋ ํ๋ผ๋ฏธํฐ๊ฐ ์๋ค๋ฉด ๊ฑฐ๋ฅด์ง ๋ชปํ ๊ฑฐ์ผ
3:52
์์ ๊ทธ mock์ด๋ ๊ฐ๋
๋๊ฐ์๋ฏ
์ต์๋ฏผ 3:52 PM
์ํ ๊ทธ๋ ๋ค ์๋ฆผ์ด ์ ๋ง๋ก ์ ์ ์ก๋๋์ง๋ ํ
์คํธ ๋ชป ํ๋๊ตฌ๋
3:52
๊ฐ์ฌํฉ๋๋ค
3:53
์๋ฆผ ์ ์ก ํ
์คํธ๋ ์ ๋ํ
์คํธ ๋ฒ์ฃผ๋ฅผ ๋ฒ์ด๋์ ์ด์ฉ ์ ์๋ค ใ
ใ
3:53
E2E๋ณด๋ค ํฐ ์๋น์ค2์๋น์ค ํ
์คํธ๋ผ
ํ๊ท์ฃผ 3:56 PM
๊ทธ์น ใ
ใ
๊ทธ๋์ send_slack์ด ์ ๋๋ค๊ณ ์๊ฐํ๊ณ ์ง๋ ํ
์คํธ๊ณ ์ ๊ฑฐ๋
send_slack์ response๋ฅผ ์ mockingํ๋ ํ
์คํธ๊ฐ ๋ฐ๋ก ์์ผ๋ฉด ์์ฃผ ์ข์ ์ ๋ํ
์คํธ๊ฐ ๋ ๋ฏ
์ต์๋ฏผ 3:56 PM
์ํ ์ํค ๋ง์ค์ ์ดํด ๋ชป ํ๋๋ฐ
3:57
์ค๋ ๋ฐค์ ์ ๊ธ ์ฝ๊ณ ํด๋ณด๊ฒ ์ด๋ค
ํ๊ท์ฃผ 3:57 PM
์์ ์ ํํ๋ send_slack์ด ์๋๋ผ ์ฌ๋ api๋ฅผ ๋ชฉํนํ๋ ํ
์คํธ?
3:57
์์
์ต์๋ฏผ 3:58 PM
์ํ ์ดํด๋์ด
3:58
์คํค~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.