NOTE
현재 Remix 개발 서버 (`remix dev`) 는 Bun 이 아직 구현하지 않은 Node.js API 에 의존합니다. 아래 가이드는 Bun 을 사용하여 프로젝트를 초기화하고 종속성을 설치하지만 개발 서버를 실행하려면 Node.js 를 사용합니다.create-remix 로 Remix 앱을 초기화하세요.
sh
bun create remixtxt
remix v1.19.3 💿 Let's build a better website...
dir Where should we create your new project?
./my-app
◼ Using basic template See https://remix.run/docs/en/main/guides/templates#templates for more
✔ Template copied
git Initialize a new git repository?
Yes
deps Install dependencies with bun?
Yes
✔ Dependencies installed
✔ Git initialized
done That's it!
Enter your project directory using cd ./my-app
Check out README.md for development and deploy instructions.개발 서버를 시작하려면 프로젝트 루트에서 bun run dev 를 실행하세요. 이렇게 하면 remix dev 명령을 사용하여 개발 서버가 시작됩니다. Node.js 가 개발 서버를 실행하는 데 사용된다는 점에 유의하세요.
sh
cd my-app
bun run devtxt
$ remix dev
💿 remix dev
info building...
info built (263ms)
Remix App Server started at http://localhost:3000 (http://172.20.0.143:3000)http://localhost:3000 을 열어 앱을 확인하세요. app/routes/_index.tsx 에 가한 변경사항은 브라우저에서 핫 리로딩됩니다.
앱을 빌드하고 시작하려면 bun run build 를 실행하세요.
sh
bun run buildtxt
$ remix build
info building... (NODE_ENV=production)
info built (158ms)그런 다음 프로젝트 루트에서 bun run start 를 실행하세요.
sh
bun starttxt
$ remix-serve ./build/index.js
[remix-serve] http://localhost:3000 (http://192.168.86.237:3000)Remix 로 앱을 빌드하는 방법에 대한 자세한 내용은 Remix 문서 를 참조하세요.