A modern starter template using Next.js 15 App Router, Shadcn UI, Tailwind CSS, Supabase, and a set of custom reusable components to help you build production-grade web apps faster.
git clone https://github.com/muhammadumarfarooq/nextjs15-shadcn-boilerplate.git
cd nextjs15-shadcn-boilerplate
pnpm install # or npm install / yarn install
pnpm dev # start the local dev server
This project uses Supabase for authentication (and is extendable for database + storage). It also integrates Google Maps for address autocomplete.
To configure your environment:
cp .env.example .env.local
Then update .env.local
:
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY=your-google-maps-api-key
You can get these values from:
These extend Shadcn base components with consistent styling and utility.
LoadingButton
β Button with built-in loading stateCircularLoader
β Minimal spinner for async contentDateRangePicker
β Range picker with calendar + popoverTextSeparator
β Divider with optional labelAddressAutoComplete
β Full address form with Google Maps Autocomplete, Zod validation, and lat/lng extractionEach component is fully typed and designed to be reusable.
supabase.from()
and supabase.storage
.
βββ components/
β βββ AddressAutoComplete/ # Address form + autocomplete logic
β βββ ui/ # Reusable UI components
βββ lib/ # Utility functions (e.g., Supabase client)
βββ app/ # Next.js 15 App Router pages/layouts
βββ styles/ # Tailwind and global styles
βββ public/ # Static assets
βββ .env.example # Environment variable template
βββ ...
MIT Β© Muhammad Umar Farooq
Contributions are welcome!
If you'd like to add new components, improve existing ones, or enhance functionality:
Please include clear documentation or usage examples where possible.
If you find this boilerplate helpful:
Letβs help other developers build faster together π