Syntax Video
Create your own Next.js Starter Template
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.
- 0:00 Intro
- 1:36 Existing Solutions
- 2:22 Next.js CLI Generators
- 4:53 Starter Kits and Boilerplates
- 5:38 SaaS Starters
- 6:52 Paid SaaS Templates
- 7:47 Toolkits / Wrappers
- 9: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
- 1:00:58 Generate background image
- 1:03:59 Not Found Page
- 1:05:58 Typesafe env Setup
- 1:11:41 process.env Linter Rule
- 1:13:43 Next.js Authentication Options
- 1:15:37 Next Auth Set Up
- 1:17:07 Set Up Google Auth Provider
- 1:18:00 Create Google OAuth Client ID
- 1:19:58 update kebab-case linter rule to allow dynamic routes
- 1:20:40 auth button / sign in / sign out
- 1:27:38 Profile page
- 1:28:37 setup next-auth environment variables
- 1:29:59 Profile page user card
- 1:31:05 authorization redirects
- 1:32:27 Session aware navbar
- 1:33:29 Next Auth Middleware
- 1:35:29 Layout Suspense Boundary
- 1:36:40 Loading page
- 1:38:14 Database Libraries
- 1:40:25 drizzle set up
- 1:43:11 docker postgres set up
- 1:47:04 drizzle configuration
- 1:48:02 Defining drizzle schema
- 1:54:20 drizzle kit config
- 1:58:08 drizzle migration set up
- 2:03:41 next-auth drizzle adapter set up
- 2:06:52 next-auth middleware issue
- 2:10:53 Next.js Server Action Libraries
- 2:13:10 Building a Simple Guestbook
- 2:16:39 drizzle-zod
- 2:20:36 Add user id to next-auth Session
- 2:28:36 Defining table relations with drizzle
- 2:33:27 Consolidating migrations during development
- 2:34:10 Create sample env
- 2:34:32 Thanks!