Code Monkey home page Code Monkey logo

t3-turbo-next-app-router's Introduction

t3-turbo-next-app-router

About

  • Next.js (using app router, server components, typesafe server actions)
  • TypeScript
  • Prisma
  • Tailwind
  • NextAuth
  • Turborepo
  • shadcn/ui components
  • Light / dark theme support, check out apps/web/src/app/styles/globals.css

Using server actions over REST/GraphQL/tRPC, etc.

.github
  └─ workflows
        └─ CI with pnpm cache setup
.vscode
  └─ Recommended extensions and settings for VSCode users
apps
  └─ web
      ├─ Next.js 13 (app router, server components, server actions)
      ├─ React 18
      └─ Tailwind CSS
packages
 ├─ auth
 |   └─ authentication using next-auth
 ├─ config
 |   └─ shared config files for eslint and tailwind
 ├─ db
 |   └─ typesafe db-calls using Prisma
 ├─ ui
 |   └─ tailwind styled radix-ui components from https://github.com/shadcn/ui
 └─ utils
     └─ shared utility files

You are able to add more apps under the apps directory, which may use the packages in the packages folder.

@acme is a placeholder for package names. You can replace it with your own organization or project name. You can use find-and-replace to change all the instances of @acme/ to something like @my-company/ or @project-name/.

Quick Start

To get it running, follow the steps below:

Setup dependencies

# Install dependencies
pnpm i

# In packages/db/prisma update schema.prisma, if you are using Planetscale to host your db uncomment the line below
+ relationMode = "prisma"

# In packages/db/prisma update schema.prisma provider to use your own database provider
- provider = "mysql"
+ provider = "postgres"

# Configure environment variables.
# There is an `.env.example` in the root directory you can use for reference
cp .env.example .env

# Generate prisma client once you have added all .env vars
pnpm db:generate

# Push the Prisma schema to your database
pnpm db:push

You can install dependencies for a single app with pnpm install --filter <workspace>

Run development script

turbo dev

View root package.json for more scripts.

Deployment

deployment steps

References

This template is modified from create-t3-turbo.

The stack originates from create-t3-app.

UI components are from shadcn/ui

t3-turbo-next-app-router's People

Contributors

braydenwerner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

t3-turbo-next-app-router's Issues

How to implement the new shadcn's components.json update?

Hey! Thank you for the template. I wanted to ask if you could throw some light on how I can implement the components.json file in the ui package?

{
  "style": "default",
  "rsc": true,
  "tailwind": {
    "config": "tailwind.config.js",
    "css": "app/globals.css",
    "baseColor": "slate",
    "cssVariables": true
  },
  "aliases": {
    "components": "@/components",
    "utils": "@/lib/utils"
  }
}

More info- https://ui.shadcn.com/docs/changelog

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.