create-t3-fire
v1.0.2
Published
Create T3 Stack apps with Firebase authentication, shadcn/ui, and more
Maintainers
Readme
create-t3-fire 🔥
The best way to start a full-stack, typesafe Next.js app with Firebase authentication and shadcn/ui components.
Get Started
To scaffold a new T3 Fire app, run any of the following commands:
npm
npx create-t3-fire@latestyarn
yarn create t3-firepnpm
pnpm create t3-fireWhat's included?
create-t3-fire sets up a Next.js project with:
- ⚡ Next.js 15 - The React Framework with App Router
- 🔷 TypeScript - Type safety from day one
- 🎨 Tailwind CSS - Utility-first CSS framework
- 🔥 Firebase Auth - Complete authentication solution
- 🎯 shadcn/ui - Beautiful, customizable UI components
- 📦 ESLint & Prettier - Code quality tools pre-configured
- 🚀 Turbopack - Lightning-fast builds
Interactive CLI
The CLI will guide you through the setup:
- Project name - Choose a name for your project
- Features - Select which features to include
- Git - Initialize a git repository
- Dependencies - Install dependencies automatically
Project Structure
my-t3-fire-app/
├── app/ # Next.js App Router
│ ├── layout.tsx # Root layout
│ ├── page.tsx # Home page
│ └── globals.css # Global styles
├── components/ # React components
├── lib/ # Utility functions
│ ├── firebase.ts # Firebase configuration
│ └── utils.ts # Helper functions
├── public/ # Static assets
├── .env.example # Environment variables template
├── next.config.mjs # Next.js configuration
├── tailwind.config.ts # Tailwind configuration
└── tsconfig.json # TypeScript configurationFirebase Setup
After creating your project:
- Create a Firebase project at Firebase Console
- Enable Authentication and choose your sign-in methods
- Copy your Firebase configuration
- Rename
.env.exampleto.env.localand add your configuration:
NEXT_PUBLIC_FIREBASE_API_KEY=your-api-key
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your-auth-domain
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your-project-id
# ... etcAvailable Scripts
In your scaffolded project, you can run:
npm run dev- Start the development server with Turbopacknpm run build- Build for productionnpm run start- Start the production servernpm run lint- Run ESLintnpm run type-check- Run TypeScript compiler check
Why T3 Fire?
- Type Safety - Full-stack type safety with TypeScript
- Authentication Ready - Firebase Auth pre-configured
- Beautiful UI - shadcn/ui components ready to use
- Fast Development - Turbopack for instant HMR
- Best Practices - ESLint, Prettier, and TypeScript configured
- Production Ready - Optimized for performance and SEO
Community
License
MIT © 2024 Vibit
Built with ❤️ by the Vibit team
