Skip to content

Commit 1298ec2

Browse files
committed
init t3app
0 parents  commit 1298ec2

29 files changed

+12877
-0
lines changed

.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+
# Drizzle
13+
DATABASE_URL="postgresql://postgres:password@localhost:5432/vihub"
14+
15+
# Next Auth
16+
# You can generate a new secret on the command line with:
17+
# openssl rand -base64 32
18+
# https://next-auth.js.org/configuration/options#secret
19+
# NEXTAUTH_SECRET=""
20+
NEXTAUTH_URL="http://localhost:3000"
21+
22+
# Next Auth Discord Provider
23+
DISCORD_CLIENT_ID=""
24+
DISCORD_CLIENT_SECRET=""

.eslintrc.cjs

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/** @type {import("eslint").Linter.Config} */
2+
const config = {
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"project": true
6+
},
7+
"plugins": [
8+
"@typescript-eslint",
9+
"drizzle"
10+
],
11+
"extends": [
12+
"next/core-web-vitals",
13+
"plugin:@typescript-eslint/recommended-type-checked",
14+
"plugin:@typescript-eslint/stylistic-type-checked"
15+
],
16+
"rules": {
17+
"@typescript-eslint/array-type": "off",
18+
"@typescript-eslint/consistent-type-definitions": "off",
19+
"@typescript-eslint/consistent-type-imports": [
20+
"warn",
21+
{
22+
"prefer": "type-imports",
23+
"fixStyle": "inline-type-imports"
24+
}
25+
],
26+
"@typescript-eslint/no-unused-vars": [
27+
"warn",
28+
{
29+
"argsIgnorePattern": "^_"
30+
}
31+
],
32+
"@typescript-eslint/require-await": "off",
33+
"@typescript-eslint/no-misused-promises": [
34+
"error",
35+
{
36+
"checksVoidReturn": {
37+
"attributes": false
38+
}
39+
}
40+
],
41+
"drizzle/enforce-delete-with-where": "error",
42+
"drizzle/enforce-update-with-where": "error"
43+
}
44+
}
45+
module.exports = config;

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
15+
# next.js
16+
/.next/
17+
/out/
18+
next-env.d.ts
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# local env files
34+
# 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
35+
.env
36+
.env*.local
37+
38+
# vercel
39+
.vercel
40+
41+
# typescript
42+
*.tsbuildinfo

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Create T3 App
2+
3+
This is a [T3 Stack](https://create.t3.gg/) project bootstrapped with `create-t3-app`.
4+
5+
## What's next? How do I make an app with this?
6+
7+
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.
8+
9+
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.
10+
11+
- [Next.js](https://nextjs.org)
12+
- [NextAuth.js](https://next-auth.js.org)
13+
- [Prisma](https://prisma.io)
14+
- [Drizzle](https://orm.drizzle.team)
15+
- [Tailwind CSS](https://tailwindcss.com)
16+
- [tRPC](https://trpc.io)
17+
18+
## Learn More
19+
20+
To learn more about the [T3 Stack](https://create.t3.gg/), take a look at the following resources:
21+
22+
- [Documentation](https://create.t3.gg/)
23+
- [Learn the T3 Stack](https://create.t3.gg/en/faq#what-learning-resources-are-currently-available) — Check out these awesome tutorials
24+
25+
You can check out the [create-t3-app GitHub repository](https://github.com/t3-oss/create-t3-app) — your feedback and contributions are welcome!
26+
27+
## How do I deploy this?
28+
29+
Follow our deployment guides for [Vercel](https://create.t3.gg/en/deployment/vercel), [Netlify](https://create.t3.gg/en/deployment/netlify) and [Docker](https://create.t3.gg/en/deployment/docker) for more information.

drizzle.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { type Config } from "drizzle-kit";
2+
3+
import { env } from "@/env";
4+
5+
export default {
6+
schema: "./src/server/db/schema.ts",
7+
driver: "pg",
8+
dbCredentials: {
9+
connectionString: env.DATABASE_URL,
10+
},
11+
tablesFilter: ["vihub_*"],
12+
} satisfies Config;

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+
await import("./src/env.js");
6+
7+
/** @type {import("next").NextConfig} */
8+
const config = {};
9+
10+
export default config;

0 commit comments

Comments
 (0)