--- name: Build an app with Astro and Bun --- Initialize a fresh Astro app with `bun create astro`. The `create-astro` package detects when you are using `bunx` and will automatically install dependencies using `bun`. ```sh $ bun create astro ╭─────╮ Houston: │ ◠ ◡ ◠ We're glad to have you on board. ╰─────╯ astro v3.1.4 Launch sequence initiated. dir Where should we create your new project? ./fumbling-field tmpl How would you like to start your new project? Use blog template ✔ Template copied deps Install dependencies? Yes ✔ Dependencies installed ts Do you plan to write TypeScript? Yes use How strict should TypeScript be? Strict ✔ TypeScript customized git Initialize a new git repository? Yes ✔ Git initialized next Liftoff confirmed. Explore your project! Enter your project directory using cd ./fumbling-field Run `bun run dev` to start the dev server. CTRL+C to stop. Add frameworks like react or tailwind using astro add. Stuck? Join us at https://astro.build/chat ╭─────╮ Houston: │ ◠ ◡ ◠ Good luck out there, astronaut! 🚀 ╰─────╯ ``` --- Start the dev server with `bunx`. By default, Bun will run the dev server with Node.js. To use the Bun runtime instead, use the `--bun` flag. ```sh $ bunx --bun astro dev 🚀 astro v3.1.4 started in 200ms ┃ Local http://localhost:4321/ ┃ Network use --host to expose ``` --- Open [http://localhost:4321](http://localhost:4321) with your browser to see the result. Astro will hot-reload your app as you edit your source files. {% image src="https://i.imgur.com/Dswiu6w.png" caption="An Astro v3 starter app running on Bun" %} --- Refer to the [Astro docs](https://docs.astro.build/en/getting-started/) for complete documentation. irror Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/packages/create-astro/create-astro.mjs (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-04-06[ci] formatGravatar natemoo-re 3-10/+16
2022-04-06fix(#2987): relative config handling with `--config` flag (#3001)Gravatar Nate Moore 5-9/+92
2022-04-06[ci] formatGravatar matthewp 3-8/+11
2022-04-06Fix Netlify adapter and dynamic routes (#3011)Gravatar Matthew Phillips 10-18/+82
2022-04-06fix(integrations): `astro:build:done` dir now matches SSR client output (#3008)Gravatar Juan Martín Seery 5-7/+20
2022-04-06fix: Nested hydration with Solid (#3003)Gravatar Ryan Carniato 3-16/+44
2022-04-06[ci] formatGravatar natemoo-re 2-6/+15
2022-04-06Astro add docs (#2958)Gravatar Peter Singh 3-3/+49
2022-04-06fix: @astrojs/vercel bug fixes (#3000)Gravatar Juan Martín Seery 2-6/+29
2022-04-06[ci] formatGravatar matthewp 1-32/+32
2022-04-06[ci] release (beta) (#3005)astro@1.0.0-beta.3Gravatar github-actions[bot] 31-88/+98
2022-04-06Fixes dynamic API routes in SSR (#3006)Gravatar Matthew Phillips 4-1/+26
2022-04-06[ci] formatGravatar tony-sull 1-1/+1
2022-04-06fix(#2981): keeps `astro preview` server alive (#3004)Gravatar Tony Sullivan 3-1/+17
2022-04-06Update readme.mdGravatar Nate Moore 1-2/+3
2022-04-06[ci] collect statsGravatar FredKSchott 1-0/+1
2022-04-05[ci] formatGravatar matthewp 1-1/+1
2022-04-05[ci] release (beta) (#2997)@astrojs/netlify@0.1.1-beta.0Gravatar github-actions[bot] 3-2/+9
2022-04-05Docs: netlify adapter site requirement (#2996)Gravatar Ben Holmes 3-4/+23
2022-04-05[ci] collect statsGravatar FredKSchott 1-0/+1
2022-04-05[ci] formatGravatar FredKSchott 1-32/+32
2022-04-04[ci] release (beta) (#2992)astro@1.0.0-beta.2Gravatar github-actions[bot] 31-87/+94