Create your own Next.js Starter Template
About
No channel description available.
Latest Posts
Video Description
In this video CJ shows how to set up a Next.js starter template from scratch. He also showcases the Next.js ecosystem of libraries, CLI tools, existing starter templates and toolkits. Next.js CLIs, Starter Kits, Templates, Toolkits and Wrappers | https://gist.github.com/w3cj/4fa5180fec37ececf0fceec0e3fcc8ab View the code here | https://github.com/w3cj/next-start 00:00 Intro 01:36 Existing Solutions 02:22 Next.js CLI Generators 04:53 Starter Kits and Boilerplates 05:38 SaaS Starters 06:52 Paid SaaS Templates 07:47 Toolkits / Wrappers 09:28 Lets build! 10:08 Code Style / Editor Settings 10:30 Generate next.js app 11:14 prettier setup 12:19 Enabling eslint rules 15:15 VS Code Format / Lint on Save 16:26 prettier sort imports 20:54 prettier tailwind plugin 22:12 format script 22:41 eslint kebab-case rule 23:31 bulletproof-react 24:31 eslint-plugin-check-file kebab-case setup 26:27 bulletproof-react Project Structure Rules 27:15 remove unused imports 27:49 tailwind support in css files 28:20 Project typescript version 28:56 Next.js Typed Routes 29:28 VS Code Tab Name Settings 30:01 Clear out extra code 31:01 Set custom favicon 31:33 base setup branch 31:58 What is tailwind? 33:12 Tailwind Component Libraries 33:36 shadcn/ui 35:09 NextUI 36:58 Headless UI 37:52 Flowbite / DaisyUI 38:12 Component Library RSC Compatibility 39:08 Set Up NextUI 42:30 App Navbar Component 45:27 NextUI Routing Setup 48:05 Tabler Icons 49:04 Dark Theme / Light Theme Toggle 51:26 create useSystemTheme hook 53:33 Theme Switch 56:24 next-themes suppressHydrationWarning 57:46 App Layout 01:00:58 Generate background image 01:03:59 Not Found Page 01:05:58 Typesafe env Setup 01:11:41 process.env Linter Rule 01:13:43 Next.js Authentication Options 01:15:37 Next Auth Set Up 01:17:07 Set Up Google Auth Provider 01:18:00 Create Google OAuth Client ID 01:19:58 update kebab-case linter rule to allow dynamic routes 01:20:40 auth button / sign in / sign out 01:27:38 Profile page 01:28:37 setup next-auth environment variables 01:29:59 Profile page user card 01:31:05 authorization redirects 01:32:27 Session aware navbar 01:33:29 Next Auth Middleware 01:35:29 Layout Suspense Boundary 01:36:40 Loading page 01:38:14 Database Libraries 01:40:25 drizzle set up 01:43:11 docker postgres set up 01:47:04 drizzle configuration 01:48:02 Defining drizzle schema 01:54:20 drizzle kit config 01:58:08 drizzle migration set up 02:03:41 next-auth drizzle adapter set up 02:06:52 next-auth middleware issue 02:10:53 Next.js Server Action Libraries 02:13:10 Building a Simple Guestbook 02:16:39 drizzle-zod 02:20:36 Add user id to next-auth Session 02:28:36 Defining table relations with drizzle 02:33:27 Consolidating migrations during development 02:34:10 Create sample env 02:34:32 Thanks! Next.js Docs | https://nextjs.org/docs/ prettier-plugin-sort-imports | https://github.com/trivago/prettier-plugin-sort-imports/ Automatic Class Sorting with Prettier | https://tailwindcss.com/blog/automatic-class-sorting-with-prettier Next.js FAQ - Module Not Found | https://nextjs-faq.com/module-not-found-due-to-case-sensitivity Bulletproof-react | https://github.com/alan2207/bulletproof-react VS Code Editor Labels | https://x.com/nextjs/status/1783508313113800930 Emoji as Favicon | https://css-tricks.com/emoji-as-a-favicon/ shadcn/ui | https://ui.shadcn.com/ NextUI | https://nextui.org/ Headless UI | https://headlessui.com/ Flowbite React | https://flowbite-react.com/ react-daisyUI | https://react.daisyui.com/ Tabler Icons | https://tabler.io/icons @tabler/icons-react | https://tabler.io/docs/icons/react next-themes | https://github.com/pacocoursey/next-themes fffuel Generators / Tools | https://www.fffuel.co/ mmmotif image generator | https://www.fffuel.co/mmmotif/ nextui branch | https://github.com/w3cj/next-start/tree/nextui t3 env | https://env.t3.gg/docs/nextjs next-auth | https://next-auth.js.org/ next-auth middleware | https://next-auth.js.org/configuration/nextjs#middleware drizzle orm | https://orm.drizzle.team/ drizzle kit | https://orm.drizzle.team/kit-docs/overview Docker crash course for developers | https://www.youtube.com/watch?v=RHjXPN_h1YA docker hub postgres | https://hub.docker.com/_/postgres/ next-auth middleware issue | https://next-auth.js.org/configuration/nextjs#caveats auth.js drizzle adapter | https://authjs.dev/getting-started/adapters/drizzle next-auth session callback | https://next-auth.js.org/configuration/callbacks#session-callback next-safe-action | https://next-safe-action.dev/ conform | https://conform.guide/integration/nextjs drizzle defining relations | https://orm.drizzle.team/docs/rqb#declaring-relations ------------------------------------------------------------------------------ Hit us up on Socials! https://www.syntax.fm/links Brought to you by Sentry - Use code "tastytreats" to get 2 months free - https://sentry.io/syntax #nextjs #tailwindcss #react
You May Also Like
Upgrade Your Tech Today
AI-recommended products based on this video

BASESAILOR iPhone 16 16e Car Charger Adapter 3Pack,USB to USBC Connector Type C Female to A Male Cable Converter for iPhone 15 14 Pro Max Plus,Apple Watch 10,Airpods 4,iPad mini 7,Samsung Galaxy S25

URVNS 240W USB C Car Charger, Super Fast Charging 4-Ports PD3.1 140W/PD3.0 100W PPS 45W QC65W Type-C Car Adapter for MacBook Pro Laptop iPhone 15 14 Max iPad Samsung Galaxy S24/23/22 Pixel etc

UGREEN 130W Car Charger USB C Fast Charger PD3.0 QC4.0 PPS Fast Charging Car Adapter with 100W USB C Cable Compatible with Dell XPS, MacBook, iPhone 16 15 14 Pro Max, Galaxy S25 S24 Ultra, iPad Pro
![VANMASS [85+LBS Strongest Suction & Clip] 2025 Upgrade Car Phone Holder [Patent & Safety Certs] Cell Phone Mount Truck Stand for Dashboard Windshield Vent for iPhone 16 Pro Max 15 14 13 12 Samsung](https://m.media-amazon.com/images/I/71bHSP1cRkL._AC_UL960_FMwebp_QL65_.jpg)
VANMASS [85+LBS Strongest Suction & Clip] 2025 Upgrade Car Phone Holder [Patent & Safety Certs] Cell Phone Mount Truck Stand for Dashboard Windshield Vent for iPhone 16 Pro Max 15 14 13 12 Samsung

Apple AirPods Pro 2 Wireless Earbuds, Bluetooth Headphones, Active Noise Cancellation, Transparency, Personalized Spatial Audio, High-Fidelity Sound, H2 Chip, USB-C Charging

3 in 1 Charging Station for iPhone, Wireless Charger for iPhone 16 15 14 13 12 11 X Pro Max & Apple Watch - Charging Stand Dock for AirPods Global Recycled Standard

3 in 1 Charging Station for iPhone, Wireless Charger for iPhone 16 15 14 13 12 11 X Pro Max & Apple Watch - Charging Stand Dock for AirPods (Blue) Global Recycled Standard
![iPhone 16 15 Charger [Apple MFi Certified] 2 Pack USB C Wall Charger Block 6FT USB C to Type C Cable Compatible with iPhone 16 15 Pro Max,16e, AirPods Pr, iPad Pro12.9/11, Samsung/Android Phones](https://m.media-amazon.com/images/I/51GjkZn3ACL._AC_UL960_FMwebp_QL65_.jpg)
iPhone 16 15 Charger [Apple MFi Certified] 2 Pack USB C Wall Charger Block 6FT USB C to Type C Cable Compatible with iPhone 16 15 Pro Max,16e, AirPods Pr, iPad Pro12.9/11, Samsung/Android Phones

Anker 332 USB-C Hub (5-in-1) with 4K HDMI Display, 5Gbps - and 2 5Gbps USB-A Data Ports and for MacBook Pro, MacBook Air, Dell XPS, Lenovo Thinkpad, HP Laptops and More
![Spigen Case for Galaxy S25 Case, Tough Armor (Ai) MagFit [Wireless Charging] Compatible with MagSafe - Black](https://m.media-amazon.com/images/I/71dL2NiwINL._AC_UL960_FMwebp_QL65_.jpg)
Spigen Case for Galaxy S25 Case, Tough Armor (Ai) MagFit [Wireless Charging] Compatible with MagSafe - Black

Spigen Case for iPhone 16 Case, Tough Armor Designed for Apple iPhone 16 - Black
![Spigen Case for iPhone 16 Pro Case, Tough Armor [MagFit] Compatible with MagSafe - Black](https://m.media-amazon.com/images/I/61rMnLID99L._AC_UL960_FMwebp_QL65_.jpg)
Spigen Case for iPhone 16 Pro Case, Tough Armor [MagFit] Compatible with MagSafe - Black
![Spigen Case for iPhone 16 Plus Case, Tough Armor (AI) [MagFit] Compatible with MagSafe - Black](https://m.media-amazon.com/images/I/61Ygh697e4L._AC_UL960_FMwebp_QL65_.jpg)
Spigen Case for iPhone 16 Plus Case, Tough Armor (AI) [MagFit] Compatible with MagSafe - Black

JoyGeek 3-in-1 Magnetic Wireless Charging Station for iPhone 16/15/14/13/12 Series & Apple Watch Ultra 2/SE; 360° Adjustable Phone Stand with 18W Adapter, Compatible with AirPods Pro/3/2 Recycled Claim Standard Blended

Apple AirPods Pro 2 Wireless Earbuds, Bluetooth Headphones, Active Noise Cancellation, Transparency, Personalized Spatial Audio, High-Fidelity Sound, H2 Chip, USB-C Charging

USB C Headphones for iPhone 17/16/16e/15 Pro Max/Plus, Type C Earbuds Wired Earphones (Microphone & Remote Control) Noise Cancelling for lPad Pro, Galaxy S23/S22/S21/S20

USB C Headphones for iPhone 17/16/16e/15 Pro Max/Plus, Type C Earbuds Wired Earphones (Microphone & Remote Control) Noise Cancelling for lPad Pro, Galaxy S23/S22/S21/S20/Ultra Note10/20, Pixel

Google Pixel Buds Pro 2 - Noise Canceling Earbuds - Up to 31 Hour Battery Life with Charging Case - Bluetooth Headphones - Compatible with Android - Hazel
![Spigen Case for Galaxy S25 Case, Rugged Armor MagFit [Fast Wireless Charging] Compatible with MagSafe - Black](https://m.media-amazon.com/images/I/81osE87mFrL._AC_UL960_FMwebp_QL65_.jpg)
Spigen Case for Galaxy S25 Case, Rugged Armor MagFit [Fast Wireless Charging] Compatible with MagSafe - Black
![Vihibii for Samsung Galaxy S25+ Plus Wallet Case with Card Holder (4 Cards) [RFID Blocking] & Slide Camera Cover & Raised Edges Protect Screen, Shockproof Rugged Case for S25+ Plus 6.7" 2025, Black](https://m.media-amazon.com/images/I/71YSDNV+PHL._AC_UL960_FMwebp_QL65_.jpg)
Vihibii for Samsung Galaxy S25+ Plus Wallet Case with Card Holder (4 Cards) [RFID Blocking] & Slide Camera Cover & Raised Edges Protect Screen, Shockproof Rugged Case for S25+ Plus 6.7" 2025, Black
![Vihibii for Samsung Galaxy S25+ Plus Wallet Case with Card Holder (4 Cards) [RFID Blocking] & Slide Camera Cover & Raised Edges Protection, Shockproof Rugged Case for S25+ Plus 6.7" 2025, Hot Pink](https://m.media-amazon.com/images/I/71K-GtDw48L._AC_UL960_FMwebp_QL65_.jpg)
Vihibii for Samsung Galaxy S25+ Plus Wallet Case with Card Holder (4 Cards) [RFID Blocking] & Slide Camera Cover & Raised Edges Protection, Shockproof Rugged Case for S25+ Plus 6.7" 2025, Hot Pink
![Spigen Case for iPhone 16 Pro Max Case, Rugged Armor [MagFit] Compatible with MagSafe - Matte Black](https://m.media-amazon.com/images/I/71Gh0VOQtlL._AC_UL960_FMwebp_QL65_.jpg)
Spigen Case for iPhone 16 Pro Max Case, Rugged Armor [MagFit] Compatible with MagSafe - Matte Black

Magnetic Wireless Charger for iPhone - 3 in 1 Mag-Safe Charging Station for Multiple Devices Apple - Charger Stand Dock for Apple Watch iPhone 16 15 14 13 12 Pro Max Plus Airpods

4-in-1 Wireless Magnetic Power Bank 10800mAh Portable Charger with iWatch Charger, QC4.0+20W PD Fast Charging USB C Battery Pack for Magsafe, iPhone 16/15/14/13/12 Series, Apple Watch etc. (White)

eazpower for Magsafe Power Bank 10000mAh, Magnetic Battery Pack Wireless, 20W PD Fast Charging, Compact Portable Charger with Built-in Cables and Stand for iPhone 16/15/14/13/12/ Apple Watch/Airpods

UGREEN 130W Car Charger USB C Fast Charger PD3.0 QC4.0 PPS Fast Charging Car Adapter with 100W USB C Cable Compatible with Dell XPS, MacBook, iPhone 16 15 14 Pro Max, Galaxy S25 S24 Ultra, iPad Pro




















