간단한 서버 실행하기
https://github.com/oven-sh/bun
GitHub - oven-sh/bun: Incredibly fast JavaScript runtime, bundler, transpiler and package manager – all in one.
Incredibly fast JavaScript runtime, bundler, transpiler and package manager – all in one. - GitHub - oven-sh/bun: Incredibly fast JavaScript runtime, bundler, transpiler and package manager – all i...
github.com
// http.ts
export default {
port: 3000,
fetch(request: Request) {
return new Response("Hello World");
},
};
// bun ./http.ts
bun 문서에서 제공하는 기본 예제 코드입니다.
리액트 서버 실행하기
bun create react ./app
cd app
bun dev
Bun is a fast all-in-one JavaScript runtime
Bundle, transpile, install and run JavaScript & TypeScript projects – all in Bun. Bun is a new JavaScript runtime with a native bundler, transpiler, task runner and npm client built-in.
bun.sh
https://www.youtube.com/watch?v=t9924eteb-4
'JavaScript > BunJS' 카테고리의 다른 글
[Bun] 2. Windows WSL 통해 Bun 환경 구축하기 (feat. VSCode) (0) | 2022.08.14 |
---|---|
[Bun] 1. Windows WSL 통해 Bun 환경 구축하기 (0) | 2022.08.14 |