rescript-remix-blog-template
rescript-remix-blog-template copied to clipboard
Blog Template built using rescript, remix, MDX, tailwind, Vercel โค๏ธโ๐ฅ
rescript-remix-blog-template
remix ReScript Blog Template
- ์ค์น ๋ฐ ์คํ
- ์ค๊ณ
- ๊ธฐ๋ฅ
- ๊ตฌํ
- ํธ๋ฌ๋ธ ์ํ

์ค์น ๋ฐ ์คํ
- ์ค์น
yarn
- ์คํ
yarn res:dev
yarn dev
์ค๊ณ
๋ชฉํ
rescript์remix๋ฅผ ์ฌ์ฉํด ๋ธ๋ก๊ทธ ๋ง๋ค๊ธฐ- ํ ํ๋ฆฟ์ผ๋ก ์ฌ์ฉํ ์ ์๋๋ก ์ ์
์ฌ์ฉ
| - | Link |
|---|---|
| Lang | rescript |
| Web Framework | remix |
| Binding | rescript-remix |
| CSS framework | tailwind |
๊ณต๋ถ ํ์
- remix ์ฌ์ฉ๋ฒ
- rescript-remix ์ฌ์ฉ๋ฒ
์กฐ์ฌ ํ์
- remix ํ๋ก์ ํธ ๋ฐฐํฌํ๋ ๋ฐฉ๋ฒ
- remix์์
mdx๋ค๋ฃจ๋ ๋ฐฉ๋ฒ - remix SEO ์ ์ฉํ๋ ๋ฐฉ๋ฒ
๋ ์ด์์
- ํค๋
- ์ปค๋ฒ ์ด๋ฏธ์ง
- ๊ธ ๋ชฉ๋ก
- ๊ธ ์ ๋ชฉ, ๋ด์ฉ, ์์ฑ์

๊ธฐ๋ฅ
| ๊ธ ๋ชฉ๋ก | ๊ธ ๋ณด๊ธฐ |
|---|---|
![]() |
![]() |
๊ตฌํ
ํ์ผ๋ณ ์ญํ
| ํ์ผ | ์ญํ |
|---|---|
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>์ผ๋ก ํด๊ฒฐ!
- mdx ๋ผ์ฐํ
๊ณผ
LoaderFunction์ด ๋ฐ์ธ๋ฉ ์ ๋์ด์์.- ํ์ํ ์ด์ : mdx#example-blog-usage
- ๋ฐ์ธ๋ฉ ๋ PR์ด ์์ง ๋จธ์ง๊ฐ ์๋์ด์์์ ๋ฐ๊ฒฌ! rescript-remix PR#21
- ์ฝ๋ฉํธ๋ฅผ ๋จ๊ฒผ์ผ๋ ์ธ์ ํ์ธํ ์ง ๋ชจ๋ฅด๋ฏ๋ก stuck ์ํ
- ๋ฐ์ธ๋ฉ์ ์ง์ ํด๋ณด์
- ๋ฐ์ธ๋ฉ์ ์ด๋ป๊ฒ ํ๋์ง ๋ชจ๋ฅด๋ฏ๋ก ๊ณต๋ถํด๋ณด๊ธฐ
- remix-rescript๋ก rescript ๋ฐ์ธ๋ฉ ์์๋ณด๊ธฐ

