DEV Community

Varun D
Varun D

Posted on • Edited on

My Buns are hot. Bun + NextJS

Started to learn NextJS and thought why not start using Bun.

Installed bun on my Mac:
curl -fsSL https://bun.sh/install | bash

Made sure it worked:
bun

Created my usual NextJS app with Typescript, Tailwind...
bunx create-next-app@latest myappname

Interesting how npx is bunx. Nice.

Installed shadcn for my UI needs. I like how it provides me with a boilerplate globals.css and a Tailwind config without complicating anything else. Shadcn is built over Radix UI primitives.
bunx shadcn-ui@latest init

and get button styles
bunx shadcn-ui@latest add button

Done! I start my dev server through
bun run dev

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay