DEV Community

Varun D
Varun D

Posted 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)