-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
9,557 additions
and
1,136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
.yarn/install-state.gz | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,36 @@ | ||
# Create T3 App | ||
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). | ||
|
||
This is a [T3 Stack](https://create.t3.gg/) project bootstrapped with `create-t3-app`. | ||
## Getting Started | ||
|
||
## What's next? How do I make an app with this? | ||
First, run the development server: | ||
|
||
We try to keep this project as simple as possible, so you can start with just the scaffolding we set up for you, and add additional things later when they become necessary. | ||
```bash | ||
npm run dev | ||
# or | ||
yarn dev | ||
# or | ||
pnpm dev | ||
# or | ||
bun dev | ||
``` | ||
|
||
If you are not familiar with the different technologies used in this project, please refer to the respective docs. If you still are in the wind, please join our [Discord](https://t3.gg/discord) and ask for help. | ||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. | ||
|
||
- [Next.js](https://nextjs.org) | ||
- [NextAuth.js](https://next-auth.js.org) | ||
- [Drizzle](https://orm.drizzle.team) | ||
- [Tailwind CSS](https://tailwindcss.com) | ||
- [tRPC](https://trpc.io) | ||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. | ||
|
||
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. | ||
|
||
## Learn More | ||
|
||
To learn more about the [T3 Stack](https://create.t3.gg/), take a look at the following resources: | ||
To learn more about Next.js, take a look at the following resources: | ||
|
||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. | ||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
|
||
- [Documentation](https://create.t3.gg/) | ||
- [Learn the T3 Stack](https://create.t3.gg/en/faq#what-learning-resources-are-currently-available) — Check out these awesome tutorials | ||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! | ||
|
||
You can check out the [create-t3-app GitHub repository](https://github.com/t3-oss/create-t3-app) — your feedback and contributions are welcome! | ||
## Deploy on Vercel | ||
|
||
## How do I deploy this? | ||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. | ||
|
||
Follow our deployment guides for [Vercel](https://create.t3.gg/en/deployment/vercel) and [Docker](https://create.t3.gg/en/deployment/docker) for more information. | ||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "new-york", | ||
"rsc": true, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.ts", | ||
"css": "src/app/globals.css", | ||
"baseColor": "slate", | ||
"cssVariables": true, | ||
"prefix": "" | ||
}, | ||
"aliases": { | ||
"components": "@/components", | ||
"utils": "@/lib/utils" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import { createServerClient, type CookieOptions } from "@supabase/ssr"; | ||
import { NextResponse, type NextRequest } from "next/server"; | ||
|
||
export async function middleware(request: NextRequest) { | ||
let response = NextResponse.next({ | ||
request: { | ||
headers: request.headers, | ||
}, | ||
}); | ||
|
||
const supabase = createServerClient( | ||
process.env.NEXT_PUBLIC_SUPABASE_URL!, | ||
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!, | ||
{ | ||
cookies: { | ||
get(name: string) { | ||
return request.cookies.get(name)?.value; | ||
}, | ||
set(name: string, value: string, options: CookieOptions) { | ||
request.cookies.set({ | ||
name, | ||
value, | ||
...options, | ||
}); | ||
response = NextResponse.next({ | ||
request: { | ||
headers: request.headers, | ||
}, | ||
}); | ||
response.cookies.set({ | ||
name, | ||
value, | ||
...options, | ||
}); | ||
}, | ||
remove(name: string, options: CookieOptions) { | ||
request.cookies.set({ | ||
name, | ||
value: "", | ||
...options, | ||
}); | ||
response = NextResponse.next({ | ||
request: { | ||
headers: request.headers, | ||
}, | ||
}); | ||
response.cookies.set({ | ||
name, | ||
value: "", | ||
...options, | ||
}); | ||
}, | ||
}, | ||
}, | ||
); | ||
|
||
await supabase.auth.getUser(); | ||
|
||
return response; | ||
} | ||
|
||
export const config = { | ||
matcher: [ | ||
/* | ||
* Match all request paths except for the ones starting with: | ||
* - _next/static (static files) | ||
* - _next/image (image optimization files) | ||
* - favicon.ico (favicon file) | ||
* Feel free to modify this pattern to include more paths. | ||
*/ | ||
"/((?!_next/static|_next/image|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)", | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,4 @@ | ||
/** @type {import("next").NextConfig} */ | ||
const config = { | ||
reactStrictMode: true, | ||
/** Enables hot reloading for local packages without a build step */ | ||
transpilePackages: ["@acme/api", "@acme/db"], | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {}; | ||
|
||
// Allow optimizing avatar images from GitHub | ||
images: { | ||
domains: [ | ||
"avatars.githubusercontent.com", | ||
"*.googleusercontent.com", | ||
"lh3.googleusercontent.com", | ||
], | ||
}, | ||
|
||
/** We already do linting and typechecking as separate tasks in CI */ | ||
eslint: { ignoreDuringBuilds: true }, | ||
typescript: { ignoreBuildErrors: true }, | ||
}; | ||
|
||
export default config; | ||
export default nextConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,74 @@ | ||
{ | ||
"name": "@acme/nextjs", | ||
"name": "my-app", | ||
"version": "0.1.0", | ||
"private": true, | ||
"scripts": { | ||
"build": "pnpm with-env next build", | ||
"clean": "git clean -xdf .next .turbo node_modules", | ||
"dev": "pnpm with-env next dev", | ||
"lint": "dotenv -v SKIP_ENV_VALIDATION=1 next lint", | ||
"format": "prettier --check . --ignore-path ../../.gitignore", | ||
"start": "pnpm with-env next start", | ||
"typecheck": "tsc --noEmit", | ||
"with-env": "dotenv -e ../../.env --" | ||
"dev": "next dev", | ||
"build": "next build", | ||
"start": "next start", | ||
"lint": "next lint" | ||
}, | ||
"dependencies": { | ||
"@acme/api": "workspace:^0.1.0", | ||
"@acme/db": "workspace:^0.1.0", | ||
"@supabase/auth-helpers-nextjs": "^0.8.7", | ||
"@radix-ui/react-alert-dialog": "^1.0.5", | ||
"@radix-ui/react-aspect-ratio": "^1.0.3", | ||
"@radix-ui/react-avatar": "^1.0.4", | ||
"@radix-ui/react-checkbox": "^1.0.4", | ||
"@radix-ui/react-collapsible": "^1.0.3", | ||
"@radix-ui/react-context-menu": "^2.1.5", | ||
"@radix-ui/react-dialog": "^1.0.5", | ||
"@radix-ui/react-dropdown-menu": "^2.0.6", | ||
"@radix-ui/react-hover-card": "^1.0.7", | ||
"@radix-ui/react-icons": "^1.3.0", | ||
"@radix-ui/react-menubar": "^1.0.4", | ||
"@radix-ui/react-navigation-menu": "^1.1.4", | ||
"@radix-ui/react-popover": "^1.0.7", | ||
"@radix-ui/react-progress": "^1.0.3", | ||
"@radix-ui/react-radio-group": "^1.1.3", | ||
"@radix-ui/react-scroll-area": "^1.0.5", | ||
"@radix-ui/react-select": "^2.0.0", | ||
"@radix-ui/react-separator": "^1.0.3", | ||
"@radix-ui/react-slider": "^1.1.2", | ||
"@radix-ui/react-slot": "^1.0.2", | ||
"@radix-ui/react-switch": "^1.0.3", | ||
"@radix-ui/react-tabs": "^1.0.4", | ||
"@radix-ui/react-toast": "^1.1.5", | ||
"@radix-ui/react-toggle": "^1.0.3", | ||
"@radix-ui/react-toggle-group": "^1.0.4", | ||
"@radix-ui/react-tooltip": "^1.0.7", | ||
"@supabase/auth-helpers-nextjs": "^0.9.0", | ||
"@supabase/ssr": "^0.1.0", | ||
"@supabase/supabase-js": "^2.39.0", | ||
"@t3-oss/env-nextjs": "^0.7.1", | ||
"@tanstack/react-query": "^5.8.7", | ||
"@tanstack/react-query-devtools": "^5.8.7", | ||
"@tanstack/react-query-next-experimental": "5.8.7", | ||
"@trpc/client": "next", | ||
"@trpc/next": "next", | ||
"@trpc/react-query": "next", | ||
"@trpc/server": "next", | ||
"lucide-react": "^0.295.0", | ||
"next": "^14.0.3", | ||
"@tanstack/react-query": "^5.20.5", | ||
"@trpc/client": "11.0.0-next-beta.289", | ||
"@trpc/next": "11.0.0-next-beta.289", | ||
"@trpc/react-query": "11.0.0-next-beta.289", | ||
"@trpc/server": "11.0.0-next-beta.289", | ||
"class-variance-authority": "^0.7.0", | ||
"clsx": "^2.1.0", | ||
"cmdk": "^0.2.1", | ||
"date-fns": "^3.3.1", | ||
"embla-carousel-react": "8.0.0-rc22", | ||
"next": "14.1.0", | ||
"next-themes": "^0.2.1", | ||
"react": "18.2.0", | ||
"react-day-picker": "^8.10.0", | ||
"react-dom": "18.2.0", | ||
"superjson": "2.2.1", | ||
"react-resizable-panels": "^2.0.9", | ||
"sonner": "^1.4.0", | ||
"tailwind-merge": "^2.2.1", | ||
"tailwindcss-animate": "^1.0.7", | ||
"vaul": "^0.9.0", | ||
"zod": "^3.22.2" | ||
}, | ||
"devDependencies": { | ||
"@acme/eslint-config": "workspace:^0.2.0", | ||
"@acme/prettier-config": "workspace:^0.1.0", | ||
"@acme/tailwind-config": "workspace:^0.1.0", | ||
"@acme/tsconfig": "workspace:^0.1.0", | ||
"@types/node": "^18.18.13", | ||
"@types/node": "^20", | ||
"@types/react": "^18.2.42", | ||
"@types/react-dom": "^18.2.17", | ||
"dotenv-cli": "^7.3.0", | ||
"@types/react-dom": "^18", | ||
"autoprefixer": "^10.4.16", | ||
"eslint": "^8.53.0", | ||
"prettier": "^3.1.0", | ||
"eslint-config-next": "14.1.0", | ||
"postcss": "^8", | ||
"tailwindcss": "3.3.5", | ||
"typescript": "^5.3.3" | ||
}, | ||
"eslintConfig": { | ||
"root": true, | ||
"extends": [ | ||
"@acme/eslint-config/base", | ||
"@acme/eslint-config/nextjs", | ||
"@acme/eslint-config/react" | ||
] | ||
}, | ||
"prettier": "@acme/prettier-config" | ||
} | ||
} | ||
} |
Oops, something went wrong.