examples/tailwind-shadcn-ui/README.md
This is an example repo of Payload being setup with TailwindCSS and shadcn/ui components ready to be used in the admin panel itself.
Checkout our tutorial on our website
To spin up this example locally, follow these steps:
npx create-payload-app --example tailwind-shadcn-uicp .env.example .env to copy the example environment variables
Adjust
PAYLOAD_PUBLIC_SITE_URLin the.envif your front-end is running on a separate domain or port.
Ensure MongoDB is running and DATABASE_URL points to it (for example mongodb://127.0.0.1/payload-example-tailwind-shadcn-ui)
pnpm dev, yarn dev or npm run dev to start the server
y when prompted to seed the databaseopen http://localhost:3000 to access the home page
open http://localhost:3000/admin to access the admin panel
That's it! Changes made in ./src will be reflected in your app. See the Development section for more details.