Folder Structure
Please select your packages to see the folder structure of a newly scaffolded app with those selections. Further down, you will find a description of each entry.
.
ββ public
β ββ favicon.ico
ββ prisma
β ββ schema.prisma
ββ src
β ββ env.mjs
β ββ pages
β β ββ _app.tsx
β β ββ api
β β β ββ auth
β β β β ββ [...nextauth].ts
β β β ββ trpc
β β β ββ [trpc].ts
β β ββ index.tsx
β ββ server
β β ββ auth.ts
β β ββ db.ts
β β ββ api
β β ββ routers
β β β ββ example.ts
β β ββ trpc.ts
β β ββ root.ts
β ββ styles
β β ββ globals.css
β ββ utils
β ββ api.ts
ββ .env
ββ .env.example
ββ .eslintrc.cjs
ββ .gitignore
ββ next-env.d.ts
ββ next.config.mjs
ββ package.json
ββ postcss.config.cjs
ββ prettier.config.cjs
ββ README.md
ββ tailwind.config.ts
ββ tsconfig.json
prisma
prisma
The
prisma
schema.prisma
public
public
The
public
favicon.ico
src/env
src/env
Used for environment variable validation and type definitions - see Environment Variables.
src/pages
src/pages
The
pages
index.tsx
/pages
_app.tsx
src/pages/api
src/pages/api
The
api
src/pages/api/auth/[...nextauth].ts
src/pages/api/auth/[...nextauth].ts
The
[...nextauth].ts
src/pages/api/trpc/[trpc].ts
src/pages/api/trpc/[trpc].ts
The
[trpc].ts
src/server/auth.ts
src/server/auth.ts
The main entrypoint for server-side authentication logic. Here, we setup the NextAuth.js configuration options, perform module augmentation as well as provide some DX utilities for authentication such as retrieving the userβs session on the server-side. See NextAuth.js usage for more information.
src/server/db.ts
src/server/db.ts
The
db.ts
src/server/api/routers/example.ts
src/server/api/routers/example.ts
The
example.ts
publicProcedure
Depending on your chosen packages this router contains more or less routes to best demonstrate the usage to your needs.
src/server/api/trpc.ts
src/server/api/trpc.ts
The
trpc.ts
- Define context used in tRPC requests. See tRPC usage for more information.
- Export procedure helpers. See tRPC usage for more information.
src/server/api/root.ts
src/server/api/root.ts
The
root.ts
src/utils/api.ts
src/utils/api.ts
The
api.ts
.env
.env
The
.env
.env.example
.env.example
The
.env.example
.eslintrc.cjs
.eslintrc.cjs
The
.eslintrc.cjs
next-env.d.ts
next-env.d.ts
The
next-env.d.ts
next.config.mjs
next.config.mjs
The
next.config.mjs
postcss.config.cjs
postcss.config.cjs
The
postcss.config.cjs
prettier.config.cjs
prettier.config.cjs
The
prettier.config.cjs
tsconfig.json
tsconfig.json
The
tsconfig.json
strict mode