Skip to content

Blog Template built using rescript, remix, MDX, tailwind, Vercel โค๏ธโ€๐Ÿ”ฅ

License

Notifications You must be signed in to change notification settings

MiryangJung/rescript-remix-blog-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

26 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

rescript-remix-blog-template

remix ReScript Blog Template

rescript-remix-blog-template.vercel.app

home

์„ค์น˜ ๋ฐ ์‹คํ–‰

  • ์„ค์น˜
yarn
  • ์‹คํ–‰
yarn res:dev
yarn dev

์„ค๊ณ„

๋ชฉํ‘œ

  • rescript ์™€ remix๋ฅผ ์‚ฌ์šฉํ•ด ๋ธ”๋กœ๊ทธ ๋งŒ๋“ค๊ธฐ
  • ํ…œํ”Œ๋ฆฟ์œผ๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ์ œ์ž‘

์‚ฌ์šฉ

- Link
Lang rescript
Web Framework remix
Binding rescript-remix
CSS framework tailwind

๊ณต๋ถ€ ํ•„์š”

์กฐ์‚ฌ ํ•„์š”

  • remix ํ”„๋กœ์ ํŠธ ๋ฐฐํฌํ•˜๋Š” ๋ฐฉ๋ฒ•
  • remix์—์„œ mdx ๋‹ค๋ฃจ๋Š” ๋ฐฉ๋ฒ•
  • remix SEO ์ ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•

๋ ˆ์ด์•„์›ƒ

  • ํ—ค๋”
  • ์ปค๋ฒ„ ์ด๋ฏธ์ง€
  • ๊ธ€ ๋ชฉ๋ก
    • ๊ธ€ ์ œ๋ชฉ, ๋‚ด์šฉ, ์ž‘์„ฑ์ž

๋ ˆ์ด์•„์›ƒ

๊ธฐ๋Šฅ

๊ธ€ ๋ชฉ๋ก ๊ธ€ ๋ณด๊ธฐ
list post

๊ตฌํ˜„

ํŒŒ์ผ๋ณ„ ์—ญํ• 

ํŒŒ์ผ ์—ญํ• 
bindings/Remix.res remix ๋ฐ”์ธ๋”ฉ
routes/index.res / ํŽ˜์ด์ง€ ๋ฐ mdx๋ฅผ ์ฝ์–ด ์ตœ๊ทผ ๊ธ€ ๋ชฉ๋ก
posts.res $posts Child routes ์Šคํƒ€์ผ๋ง

ํŠธ๋Ÿฌ๋ธ” ์ŠˆํŒ…

  • remix-rescript ์—์„œ mdx ํŒŒ์ผ ๋ผ์šฐํŒ…์ด ์•ˆ๋จ.
  • ํŠน์ • ํด๋” ๋‚ด์˜ .mdx ๋ฆฌ์ŠคํŠธ๋ฅผ ๊ฐ€์ ธ์˜ค๋Š” ๋ฐฉ๋ฒ•์„ ๋ชจ๋ฅด๊ฒ ์Œ.
    • we suggest you rethink your strategy and turn your posts into data stored in a database so that you don't have to rebuild and redeploy your blog every time you fix a typo.
    • remix์—์„œ๋Š” DB ์‚ฌ์šฉ์„ ๊ถŒ์žฅํ•˜๊ณ  ์žˆ์Œ.
    • ์–ด๋–ค DB store๋ฅผ ์‚ฌ์šฉํ•  ์ง€ ๊ณ ๋ฏผ ํ•„์š”.
    • ๊ทผ๋ฐ ๋‹ค์‹œ ์ƒ๊ฐํ•ด๋ณด๋‹ˆ DB์— ๋ฐ์ดํ„ฐ๋ฅผ ๋„ฃ์œผ๋ ค๋ฉด ์ธ์ฆ ๋ถ€๋ถ„์ด ๋“ค์–ด๊ฐ€์•ผํ•ด์„œ ์ดˆ๊ธฐ ๊ธฐํš๊ณผ ๋งž์ง€ ์•Š์Œ.
    • ์ผ๋‹จ ์ด๊ฑด ๋‚˜์ค‘์— ์ƒ๊ฐํ•ด๋ณด๊ณ  mdx๋ฅผ ๋กœ๋”ฉํ•˜๋Š” ๊ฑฐ๋ถ€ํ„ฐ ํ•ด๊ฒฐํ•˜์ž.
      • mdx ๋ผ์šฐํŒ…๊ณผ <Outlet> ์œผ๋กœ ํ•ด๊ฒฐ!
  • LoaderFunction ์ด ๋ฐ”์ธ๋”ฉ ์•ˆ ๋˜์–ด์žˆ์Œ.
    • ํ•„์š”ํ•œ ์ด์œ  : mdx#example-blog-usage
    • ๋ฐ”์ธ๋”ฉ ๋œ PR์ด ์•„์ง ๋จธ์ง€๊ฐ€ ์•ˆ๋˜์–ด์žˆ์Œ์„ ๋ฐœ๊ฒฌ! rescript-remix PR#21
    • ์ฝ”๋ฉ˜ํŠธ๋ฅผ ๋‚จ๊ฒผ์œผ๋‚˜ ์–ธ์ œ ํ™•์ธํ•  ์ง€ ๋ชจ๋ฅด๋ฏ€๋กœ stuck ์ƒํƒœ
  • ๋ฐ”์ธ๋”ฉ์„ ์ง์ ‘ ํ•ด๋ณด์ž

์ฐธ๊ณ  ์†Œ์Šค