Coder Social home page Coder Social logo

jaaneek / t3-supabase-app-router Goto Github PK

View Code? Open in Web Editor NEW
142.0 1.0 22.0 383 KB

Nextjs 14 APP Router, t3 stack, Supabase (Auth, storage, database)

JavaScript 5.87% TypeScript 89.98% CSS 2.01% PLpgSQL 2.14%
supabase nextjs-starter nextjs-template nextjs13 trpc

t3-supabase-app-router's Introduction

T3 stack + Supabase + App directory

This project is Edge ready (Vercel Edge runtime)

This is a starter project/boilerplate to start out with:

  • TRPC
  • App directory/router
  • Prisma
  • Supabase (Auth, Storage, Serverless Queries)
  • Tailwind
  • Edge Ready
  • Umami analytics

It allows us to call database in server components through supabase-js, for client component we are using trpc+prisma due to the superior DX

Projects using this starter

What's next? How do I make an app with this?

  • Clone this project
  • Run
pnpm install
  • Copy the .env.example into .env and fill out the envs

Initial Setup

If you want to develop on local supabase instance, follow the steps below:

Then go to supabase/config.toml file and change your service name.

Start the database:

  • supabase start
  • pnpm prepare:local

If you want to develop on remote supabase instance, follow the steps below:

Connect supabase to remote instance:

  • supabase link --project-ref <your_project_id>
  • pnpm prepare:remote

Common steps

  • Fill out environment variables
  • Create Secrets on Github

If you want to create migrations by hand, go ahead and use this command:

  • supabase migration new <migration_name>

Then go to supabase/migrations folder and add your SQL there.

If you want to make changes with studio, use

  • pnpm db:diff <migration_name>

Run these initial commands

Every time you change something on local instance:

pnpm prepare:local
  • If you develop on cloud supabase run:
pnpm prepare:remote
  • Run the project
pnpm dev

If you are not familiar with the different technologies used in this project, please refer to the respective docs.

Authors

๐Ÿ‘ค Milosz Jankiewicz

๐Ÿ‘ค Jakub Czarnowski

Learn More

To learn more about the T3 Stack, take a look at the following resources:

You can check out the create-t3-app GitHub repository โ€” your feedback and contributions are welcome!

How do I deploy this?

Follow deployment guides for Vercel, Netlify and Docker for more information.

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.