Skip to content

Commit d9492e3

Browse files
committed
initial commit
0 parents  commit d9492e3

30 files changed

Lines changed: 1938 additions & 0 deletions

.env.example

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Since the ".env" file is gitignored, you can use the ".env.example" file to
2+
# build a new ".env" file when you clone the repo. Keep this file up-to-date
3+
# when you add new variables to `.env`.
4+
5+
# This file will be committed to version control, so make sure not to have any
6+
# secrets in it. If you are cloning this repo, create a copy of this file named
7+
# ".env" and populate it with your secrets.
8+
9+
# When adding additional environment variables, the schema in "/src/env.js"
10+
# should be updated accordingly.
11+
12+
# Next Auth
13+
# You can generate a new secret on the command line with:
14+
# npx auth secret
15+
# https://next-auth.js.org/configuration/options#secret
16+
AUTH_SECRET=""
17+
18+
# Next Auth Discord Provider
19+
AUTH_DISCORD_ID=""
20+
AUTH_DISCORD_SECRET=""
21+
22+
# Prisma
23+
# https://www.prisma.io/docs/reference/database-reference/connection-urls#env
24+
DATABASE_URL="postgresql://postgres:password@localhost:5432/t3dotgg"

.gitignore

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# database
12+
/prisma/db.sqlite
13+
/prisma/db.sqlite-journal
14+
db.sqlite
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
next-env.d.ts
20+
21+
# production
22+
/build
23+
24+
# misc
25+
.DS_Store
26+
*.pem
27+
28+
# debug
29+
npm-debug.log*
30+
yarn-debug.log*
31+
yarn-error.log*
32+
.pnpm-debug.log*
33+
34+
# local env files
35+
# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables
36+
.env
37+
.env*.local
38+
39+
# vercel
40+
.vercel
41+
42+
# typescript
43+
*.tsbuildinfo
44+
45+
# idea files
46+
.idea

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Praash
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## t3dotgg clone

bun.lock

Lines changed: 935 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import { FlatCompat } from "@eslint/eslintrc";
2+
import tseslint from "typescript-eslint";
3+
4+
const compat = new FlatCompat({
5+
baseDirectory: import.meta.dirname,
6+
});
7+
8+
export default tseslint.config(
9+
{
10+
ignores: [".next"],
11+
},
12+
...compat.extends("next/core-web-vitals"),
13+
{
14+
files: ["**/*.ts", "**/*.tsx"],
15+
extends: [
16+
...tseslint.configs.recommended,
17+
...tseslint.configs.recommendedTypeChecked,
18+
...tseslint.configs.stylisticTypeChecked,
19+
],
20+
rules: {
21+
"@typescript-eslint/array-type": "off",
22+
"@typescript-eslint/consistent-type-definitions": "off",
23+
"@typescript-eslint/consistent-type-imports": [
24+
"warn",
25+
{ prefer: "type-imports", fixStyle: "inline-type-imports" },
26+
],
27+
"@typescript-eslint/no-unused-vars": [
28+
"warn",
29+
{ argsIgnorePattern: "^_" },
30+
],
31+
"@typescript-eslint/require-await": "off",
32+
"@typescript-eslint/no-misused-promises": [
33+
"error",
34+
{ checksVoidReturn: { attributes: false } },
35+
],
36+
},
37+
},
38+
{
39+
linterOptions: {
40+
reportUnusedDisableDirectives: true,
41+
},
42+
languageOptions: {
43+
parserOptions: {
44+
projectService: true,
45+
},
46+
},
47+
},
48+
);

next.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
3+
* for Docker builds.
4+
*/
5+
import "./src/env.js";
6+
7+
/** @type {import("next").NextConfig} */
8+
const config = {};
9+
10+
export default config;

package.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"name": "t3dotgg",
3+
"version": "0.1.0",
4+
"private": true,
5+
"type": "module",
6+
"scripts": {
7+
"build": "next build",
8+
"check": "next lint && tsc --noEmit",
9+
"db:generate": "prisma migrate dev",
10+
"db:migrate": "prisma migrate deploy",
11+
"db:push": "prisma db push",
12+
"db:studio": "prisma studio",
13+
"dev": "next dev --turbo",
14+
"format:check": "prettier --check \"**/*.{ts,tsx,js,jsx,mdx}\" --cache",
15+
"format:write": "prettier --write \"**/*.{ts,tsx,js,jsx,mdx}\" --cache",
16+
"postinstall": "prisma generate",
17+
"lint": "next lint",
18+
"lint:fix": "next lint --fix",
19+
"preview": "next build && next start",
20+
"start": "next start",
21+
"typecheck": "tsc --noEmit"
22+
},
23+
"dependencies": {
24+
"@auth/prisma-adapter": "^2.7.2",
25+
"@prisma/client": "^6.5.0",
26+
"@t3-oss/env-nextjs": "^0.12.0",
27+
"@tanstack/react-query": "^5.69.0",
28+
"@trpc/client": "^11.0.0",
29+
"@trpc/react-query": "^11.0.0",
30+
"@trpc/server": "^11.0.0",
31+
"next": "^15.2.3",
32+
"next-auth": "5.0.0-beta.25",
33+
"react": "^19.0.0",
34+
"react-dom": "^19.0.0",
35+
"server-only": "^0.0.1",
36+
"superjson": "^2.2.1",
37+
"zod": "^3.24.2"
38+
},
39+
"devDependencies": {
40+
"@eslint/eslintrc": "^3.3.1",
41+
"@tailwindcss/postcss": "^4.0.15",
42+
"@types/node": "^20.14.10",
43+
"@types/react": "^19.0.0",
44+
"@types/react-dom": "^19.0.0",
45+
"eslint": "^9.23.0",
46+
"eslint-config-next": "^15.2.3",
47+
"postcss": "^8.5.3",
48+
"prettier": "^3.5.3",
49+
"prettier-plugin-tailwindcss": "^0.6.11",
50+
"prisma": "^6.5.0",
51+
"tailwindcss": "^4.0.15",
52+
"typescript": "^5.8.2",
53+
"typescript-eslint": "^8.27.0"
54+
},
55+
"ct3aMetadata": {
56+
"initVersion": "7.39.3"
57+
}
58+
}

postcss.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default {
2+
plugins: {
3+
"@tailwindcss/postcss": {},
4+
},
5+
};

prettier.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** @type {import('prettier').Config & import('prettier-plugin-tailwindcss').PluginOptions} */
2+
export default {
3+
plugins: ["prettier-plugin-tailwindcss"],
4+
};

0 commit comments

Comments
 (0)