# ๐ŸฅFuwari [Astro](https://astro.build)๋กœ ๊ตฌ์ถ•๋œ ์ •์  ๋ธ”๋กœ๊ทธ ํ…œํ”Œ๋ฆฟ์ž…๋‹ˆ๋‹ค. [**๐Ÿ–ฅ๏ธ๋ฏธ๋ฆฌ๋ณด๊ธฐ (Vercel)**](https://fuwari.vercel.app)   /   [**๐ŸŒไธญๆ–‡ README**](https://github.com/saicaca/fuwari/blob/main/README.zh-CN.md)   /   [**๐ŸŒๆ—ฅๆœฌ่ชž README**](https://github.com/saicaca/fuwari/blob/main/README.ja-JP.md)   /   [**๐ŸŒํ•œ๊ตญ์–ด README**](https://github.com/saicaca/fuwari/blob/main/README.ko.md)   /   [**๐Ÿ“ฆOld Hexo Version**](https://github.com/saicaca/hexo-theme-vivia) ![Preview Image](https://raw.githubusercontent.com/saicaca/resource/main/fuwari/home.png) ## โœจ ํŠน์ง• - [x] [Astro](https://astro.build) ๋ฐ [Tailwind CSS](https://tailwindcss.com)๋กœ ๊ตฌ์ถ•๋จ - [x] ๋ถ€๋“œ๋Ÿฌ์šด ์• ๋‹ˆ๋ฉ”์ด์…˜ ๋ฐ ํŽ˜์ด์ง€ ์ „ํ™˜ - [x] ๋ผ์ดํŠธ ๋ชจ๋“œ / ๋‹คํฌ ๋ชจ๋“œ - [x] ์‚ฌ์šฉ์ž ์ •์˜ ๊ฐ€๋Šฅํ•œ ํ…Œ๋งˆ ์ƒ‰์ƒ ๋ฐ ๋ฐฐ๋„ˆ - [x] ๋ฐ˜์‘ํ˜• ๋””์ž์ธ - [ ] ๋Œ“๊ธ€ - [x] ๊ฒ€์ƒ‰ - [ ] ๋ชฉ์ฐจ ## ๐Ÿš€ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ• 1. ์ด ํ…œํ”Œ๋ฆฟ์—์„œ [์ƒˆ ์ €์žฅ์†Œ๋ฅผ ์ƒ์„ฑ](https://github.com/saicaca/fuwari/generate)ํ•˜๊ฑฐ๋‚˜ ์ด ์ €์žฅ์†Œ๋ฅผ ํฌํฌํ•˜์„ธ์š”. 2. ๋ธ”๋กœ๊ทธ๋ฅผ ๋กœ์ปฌ์—์„œ ํŽธ์ง‘ํ•˜๋ ค๋ฉด ์ €์žฅ์†Œ๋ฅผ ๋ณต์ œํ•˜๊ณ  `pnpm install` ๋ฐ `pnpm add sharp`๋ฅผ ์‹คํ–‰ํ•˜์—ฌ ์ข…์†์„ฑ์„ ์„ค์น˜ํ•˜์„ธ์š”. - ์•„์ง [pnpm](https://pnpm.io)์„ ์„ค์น˜ํ•˜์ง€ ์•Š์•˜๋‹ค๋ฉด `npm install -g pnpm`์„ ์‹คํ–‰ํ•˜์—ฌ [pnpm](https://pnpm.io)์„ ์„ค์น˜ํ•˜์„ธ์š”. 3. ๋ธ”๋กœ๊ทธ๋ฅผ ์‚ฌ์šฉ์ž ์ •์˜ํ•˜๋ ค๋ฉด `src/config.ts` ๊ตฌ์„ฑ ํŒŒ์ผ์„ ํŽธ์ง‘ํ•˜์„ธ์š”. 4. `pnpm new-post `์„ ์‹คํ–‰ํ•˜์—ฌ ์ƒˆ ๊ฒŒ์‹œ๋ฌผ์„ ๋งŒ๋“ค๊ณ  `src/content/posts/`์—์„œ ํŽธ์ง‘ํ•˜์„ธ์š”. 5. [๊ฐ€์ด๋“œ](https://docs.astro.build/en/guides/deploy/)์— ๋”ฐ๋ผ ๋ธ”๋กœ๊ทธ๋ฅผ Vercel, Netlify, GitHub ํŽ˜์ด์ง€ ๋“ฑ์— ๋ฐฐํฌํ•˜์„ธ์š”. ๋ฐฐํฌํ•˜๊ธฐ ์ „์— `astro.config.mjs`์—์„œ ์‚ฌ์ดํŠธ ๊ตฌ์„ฑ์„ ํŽธ์ง‘ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ## โš™๏ธ ๊ฒŒ์‹œ๋ฌผ์˜ ๋จธ๋ฆฌ๋ง ์„ค์ • ```yaml --- title: ๋‚ด ์ฒซ ๋ธ”๋กœ๊ทธ ๊ฒŒ์‹œ๋ฌผ published: 2023-09-09 description: ๋‚ด ์ƒˆ๋กœ์šด Astro ๋ธ”๋กœ๊ทธ์˜ ์ฒซ ๋ฒˆ์งธ ๊ฒŒ์‹œ๋ฌผ์ž…๋‹ˆ๋‹ค! image: /images/cover.jpg tags: [ํ‘ธ, ๋ฐ”, ์˜ค] category: ์•ž-๋ draft: false --- ``` ## ๐Ÿงž ๋ช…๋ น์–ด ๋ชจ๋“  ๋ช…๋ น์–ด๋Š” ํ”„๋กœ์ ํŠธ ์ตœ์ƒ๋‹จ, ํ„ฐ๋ฏธ๋„์—์„œ ์‹คํ–‰๋ฉ๋‹ˆ๋‹ค: | Command | Action | |:------------------------------------|:-------------------------------------------------| | `pnpm install` AND `pnpm add sharp` | ์ข…์†์„ฑ์„ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค. | | `pnpm dev` | `localhost:4321`์—์„œ ๋กœ์ปฌ ๊ฐœ๋ฐœ ์„œ๋ฒ„๋ฅผ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค. | | `pnpm build` | `./dist/`์— ํ”„๋กœ๋•์…˜ ์‚ฌ์ดํŠธ๋ฅผ ๊ตฌ์ถ•ํ•ฉ๋‹ˆ๋‹ค. | | `pnpm preview` | ๋ฐฐํฌํ•˜๊ธฐ ์ „์— ๋กœ์ปฌ์—์„œ ๋นŒ๋“œ ๋ฏธ๋ฆฌ๋ณด๊ธฐ | | `pnpm new-post ` | ์ƒˆ ๊ฒŒ์‹œ๋ฌผ ์ž‘์„ฑ | | `pnpm astro ...` | `astro add`, `astro check`์™€ ๊ฐ™์€ CLI ๋ช…๋ น์–ด ์‹คํ–‰ | | `pnpm astro --help` | Astro CLI๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋„์›€ ๋ฐ›๊ธฐ |