Coder Social home page Coder Social logo

kubarocks / create-t3-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from t3-oss/create-t3-app

0.0 0.0 0.0 2.01 MB

Quickest way to start a new web app with full stack typesafety

Home Page: https://create.t3.gg

License: MIT License

Shell 0.26% JavaScript 10.78% TypeScript 87.45% CSS 1.51%

create-t3-app's Introduction

Logo for T3

create-t3-app

Interactive CLI to quickly set up an opinionated, full-stack, typesafe Next.js project.

Get started with the T3 Stack by running npx create-t3-app

PRs-Welcome Discord NPM version Downloads

Video thumbnail of Theo with an indecipherable expression on his face

Watch Theo's overview on Youtube here

Table of contents

What is the T3 Stack?

The "T3 Stack" is a web development stack made by Theo focused on simplicity, modularity, and full-stack typesafety. It consists of:

What is this? Some kinda template?

Kind of. We love all of the technologies that create-t3-app includes. Check out init.tips for even more info on topics such as state management and deployment. But we do not believe these are needed on every project.

So we made create-t3-app to do one thing: Simplify complex boilerplate around the core T3 Stack tech without compromising the pieces modularity. This is NOT an all-inclusive template and we expect you to bring your own libraries as well.

We are selective about the packages we have included. We don't add libraries that are as simple as npm install zustand: If you cut an issue asking us to add your preferred libraries, we will make fun of you.

Nelson from the Simpsons pointing and saying ha-ha in a mocking tone

Getting Started

To get started with create-t3-app, run any of the following three commands and answer the command prompt questions:

npm

npx create-t3-app@latest

yarn

yarn create t3-app

pnpm

pnpm dlx create-t3-app@latest

If you prefer using the experimental v10 version of tRPC, use create-t3-app@next. Note that the alpha versions of tRPC that it uses may contain API changes. We will try our best to keep on top of these, please file an issue if we have missed something.

An ongoing development branch, create-t3-app@beta, can be downloaded for the most recent changes. Expect bugs when using the beta branch and please open issues with reproductions when they occur.

Community

For help, discussion about best practices, or any other conversation that would benefit create-t3-app:

Join the T3 Discord Server

CLI Docs

The following CLI options and flags can configure the create command with custom behavior:

Option/Flag Description
[dir] Include a directory argument with a name for the project
--noGit Explicitly tell the CLI to not initialize a new git repo in the project
-y, --default Bypass the CLI and use all default options to bootstrap a new t3-app
--noInstall Generate project without installing dependencies

To use the beta version of create-t3-app:

npx create-t3-app@beta

To scaffold the project using tRPC v10 (experimental):

npx create-t3-app@next

T3 Axioms

We'll be frank - this is an opinionated project. We share a handful of core beliefs around building and we treat them as the basis for our decisions.

1. Solve Problems

It's easy to fall in the trap of "adding everything" - we explicitly don't want to do that. Everything added to create-t3-app should solve a specific problem that exists within the core technologies included. This means we won't add things like state libraries (zustand, redux) but we will add things like NextAuth.js and integrate Prisma and tRPC for you.

2. Bleed Responsibly

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 to bleed responsibly, using riskier tech in the less risky parts. This means we wouldn't ⛔️ bet on risky new database tech (SQL is great!). But we happily ✅ bet on tRPC since it's just functions that are trivial to move off.

3. Typesafety Isn't Optional

Two of the three T's are typesafe (Typescript, tRPC). We take typesafety seriously in these parts. Any decision that compromises the full-stack, typesafe nature of create-t3-app is a decision that should be made in a different project. The stated goal of create-t3-app is to provide the quickest way to start a new fullstack, type safe web application.

Contributors

We 💖 contributors! Feel free to contribute to this project but please read the Contributing Guidelines before opening an issue or PR so you understand the branching strategy and local development environment. We also welcome you to join our Discord community for either support or contributing guidance.

A table of avatars from the project's contributors

Made with contrib.rocks

Powered by vercel

create-t3-app's People

Contributors

ajcwebdev avatar asrvd avatar barrybtw avatar bendundon avatar bhatvikrant avatar c-ehrlich avatar carlosgomez-dev avatar devkevbot avatar dhravya avatar fedeorlandau avatar fernandoxu avatar github-actions[bot] avatar idarklightning avatar jacobmgevans avatar johndaly avatar julianread avatar juliusmarminge avatar khalil-omer avatar krish120003 avatar mnik01 avatar mwhite-22 avatar nexxeln avatar nramkissoon avatar s0er3n avatar sidwebworks avatar t3dotgg avatar theycallmecheng avatar vitorwlima avatar wlechowicz avatar zingerj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.