Skip to content

Commit fd1f80b

Browse files
committed
initial commit
0 parents  commit fd1f80b

23 files changed

+5267
-0
lines changed

.env.example

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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.mjs"
10+
# should be updated accordingly.
11+
12+
# Prisma
13+
# https://www.prisma.io/docs/reference/database-reference/connection-urls#env
14+
DATABASE_URL="file:./db.sqlite"

.eslintrc.cjs

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// eslint-disable-next-line @typescript-eslint/no-var-requires
2+
const path = require("path");
3+
4+
/** @type {import("eslint").Linter.Config} */
5+
const config = {
6+
overrides: [
7+
{
8+
extends: [
9+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
10+
],
11+
files: ["*.ts", "*.tsx"],
12+
parserOptions: {
13+
project: path.join(__dirname, "tsconfig.json"),
14+
},
15+
},
16+
],
17+
parser: "@typescript-eslint/parser",
18+
parserOptions: {
19+
project: path.join(__dirname, "tsconfig.json"),
20+
},
21+
plugins: ["@typescript-eslint"],
22+
extends: ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"],
23+
rules: {
24+
"@typescript-eslint/consistent-type-imports": [
25+
"warn",
26+
{
27+
prefer: "type-imports",
28+
fixStyle: "inline-type-imports",
29+
},
30+
],
31+
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
32+
},
33+
};
34+
35+
module.exports = config;

.gitignore

+42
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

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
- [Tailwind CSS](https://tailwindcss.com)
15+
- [tRPC](https://trpc.io)
16+
17+
## Learn More
18+
19+
To learn more about the [T3 Stack](https://create.t3.gg/), take a look at the following resources:
20+
21+
- [Documentation](https://create.t3.gg/)
22+
- [Learn the T3 Stack](https://create.t3.gg/en/faq#what-learning-resources-are-currently-available) — Check out these awesome tutorials
23+
24+
You can check out the [create-t3-app GitHub repository](https://github.com/t3-oss/create-t3-app) — your feedback and contributions are welcome!
25+
26+
## How do I deploy this?
27+
28+
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.

next.config.mjs

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation.
3+
* This is especially useful for Docker builds.
4+
*/
5+
!process.env.SKIP_ENV_VALIDATION && (await import("./src/env.mjs"));
6+
7+
/** @type {import("next").NextConfig} */
8+
const config = {
9+
reactStrictMode: true,
10+
11+
/**
12+
* If you have the "experimental: { appDir: true }" setting enabled, then you
13+
* must comment the below `i18n` config out.
14+
*
15+
* @see https://github.com/vercel/next.js/issues/41980
16+
*/
17+
i18n: {
18+
locales: ["en"],
19+
defaultLocale: "en",
20+
},
21+
};
22+
export default config;

0 commit comments

Comments
 (0)