Turborepo | TRPC | Drizzle/Postgres | Better Auth | shadcn/ui | T3 App | Bun.
-
Change workspace and first app name:
bun scripts/rename -w your-workspace-name -a your-app-name
. Make sure everything is correct and commit the changes. -
Setup postgres (
DATABASE_URL
). Neon preferred for easy setup or run local script for docker. -
Setup Better Auth (
AUTH_SECRET
) and GitHub Provider (AUTH_GITHUB_ID
,AUTH_GITHUB_SECRET
). -
Install bun and
bun i
to install deps. -
bun db:migrate
to for db migration (you can skip migrations and usebun db:push
to push schema directly.). -
bun dev
to start the local dev setup. -
Head over to the code and follow the lead!
Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:
cd m
bun x turbo login
This will authenticate the Turborepo CLI with your Vercel account.
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:
bun x turbo link
Learn more about the power of Turborepo: