- Notifications
You must be signed in to change notification settings - Fork1.3k
The best way to start a full-stack, typesafe Next.js app
License
t3-oss/create-t3-app
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Interactive CLI to start a full-stack, typesafe Next.js app.
Get started with theT3 Stack by runningnpm create t3-app@latest
Watch Theo's overview on Youtube here
The"T3 Stack" is a web development stack made byTheo focused onsimplicity,modularity, andfull-stack typesafety. It consists of:
Kind of?create-t3-app
is a CLI built by seasoned T3 Stack devs to streamline the setup of a modular T3 Stack app. This means each piece is optional, and the "template" is generated based on your specific needs.
After countless projects and many years on this tech, we have lots of opinions and insights. We’ve done our best to encode them into this CLI.
This isNOT an all-inclusive template. Weexpect you to bring your own libraries that solve the needs ofYOUR application. While we don’t want to prescribe solutions to more specific problems like state management and deployment, wedo have some recommendations listed here.
We'll be frank - this is anopinionated project. We share a handful of core beliefs around building and we treat them as the basis for our decisions.
It's easy to fall into the trap of "adding everything" - we explicitlydon't want to do that. Everything added tocreate-t3-app
should solve aspecific problem that exists within the core technologies included. This means wewon't add things like state libraries (zustand
,redux
) but wewill add things like NextAuth.js and integrate Prisma and tRPC for you.
We love our bleeding edge tech. The amount of speed and, honestly,fun that comes out of new shit is really cool. We think it's important tobleed responsibly, using riskier tech in the less risky parts. This means wewouldn't ⛔️ bet on risky new database tech (SQL is great!). But wehappily ✅ bet on tRPC since it's just functions that are trivial to move off.
The stated goal ofcreate-t3-app
is to provide the quickest way to start a new full-stack, typesafe web application. We take typesafety seriously in these parts as it improves our productivity and helps us ship fewer bugs. Any decision that compromises the typesafe nature ofcreate-t3-app
is a decision that should be made in a different project.
To scaffold an app usingcreate-t3-app
, run any of the following four commands and answer the command prompt questions:
npm create t3-app@latest
yarn create t3-app
pnpm create t3-app@latest
bun create t3-app@latest
For more advanced usage, check out theCLI docs.
For help, discussion about best practices, or any other conversation that would benefit create-t3-app:
We 💖 contributors! Feel free to contribute to this project butplease read theContributing Guidelines before opening an issue or PR so you understand the branching strategy and local development environment. We also welcome you to join ourDiscord community for either support or contributing guidance.
Made withcontrib.rocks
About
The best way to start a full-stack, typesafe Next.js app