├── .env ├── .env.example ├── .eslintrc.json ├── .gitignore ├── Makefile ├── README.md ├── docker-compose.yml ├── next-env.d.ts ├── next.config.js ├── package.json ├── postcss.config.js ├── prisma ├── migrations │ ├── 20220820143857_post_entity │ │ └── migration.sql │ ├── 20220820154713_post_entity │ │ └── migration.sql │ └── migration_lock.toml └── schema.prisma ├── src ├── client │ ├── components │ │ ├── FileUpload.tsx │ │ ├── FormInput.tsx │ │ ├── FullScreenLoader.tsx │ │ ├── Header.tsx │ │ ├── LoadingButton.tsx │ │ ├── Message.tsx │ │ ├── Spinner.tsx │ │ ├── TextInput.tsx │ │ ├── modals │ │ │ └── post.modal.tsx │ │ └── posts │ │ │ ├── create.post.tsx │ │ │ ├── post.component.tsx │ │ │ └── update.post.tsx │ ├── lib │ │ └── types.ts │ ├── middleware │ │ └── AuthMiddleware.tsx │ ├── store │ │ └── index.ts │ └── utils │ │ └── trpc.ts ├── pages │ ├── _app.tsx │ ├── _document.tsx │ ├── api │ │ ├── hello.ts │ │ └── trpc │ │ │ └── [trpc].ts │ ├── index.tsx │ ├── login.tsx │ ├── profile.tsx │ └── register.tsx ├── public │ ├── favicon.ico │ └── vercel.svg ├── server │ ├── config │ │ └── default.ts │ ├── controllers │ │ ├── auth.controller.ts │ │ ├── post.controller.ts │ │ └── user.controller.ts │ ├── createContext.ts │ ├── createRouter.ts │ ├── middleware │ │ └── deserializeUser.ts │ ├── routers │ │ ├── app.routes.ts │ │ ├── auth.routes.ts │ │ ├── post.routes.ts │ │ └── user.routes.ts │ ├── schema │ │ ├── post.schema.ts │ │ └── user.schema.ts │ ├── services │ │ ├── post.service.ts │ │ └── user.service.ts │ └── utils │ │ ├── connectRedis.ts │ │ ├── jwt.ts │ │ └── prisma.ts └── styles │ ├── Home.module.css │ └── globals.css ├── tailwind.config.js ├── tsconfig.json └── yarn.lock /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/.env -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/.gitignore -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/postcss.config.js -------------------------------------------------------------------------------- /prisma/migrations/20220820143857_post_entity/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/prisma/migrations/20220820143857_post_entity/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20220820154713_post_entity/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/prisma/migrations/20220820154713_post_entity/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /src/client/components/FileUpload.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/client/components/FileUpload.tsx -------------------------------------------------------------------------------- /src/client/components/FormInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/client/components/FormInput.tsx -------------------------------------------------------------------------------- /src/client/components/FullScreenLoader.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/client/components/FullScreenLoader.tsx -------------------------------------------------------------------------------- /src/client/components/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/client/components/Header.tsx -------------------------------------------------------------------------------- /src/client/components/LoadingButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/client/components/LoadingButton.tsx -------------------------------------------------------------------------------- /src/client/components/Message.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/client/components/Message.tsx -------------------------------------------------------------------------------- /src/client/components/Spinner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/client/components/Spinner.tsx -------------------------------------------------------------------------------- /src/client/components/TextInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/client/components/TextInput.tsx -------------------------------------------------------------------------------- /src/client/components/modals/post.modal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/client/components/modals/post.modal.tsx -------------------------------------------------------------------------------- /src/client/components/posts/create.post.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/client/components/posts/create.post.tsx -------------------------------------------------------------------------------- /src/client/components/posts/post.component.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/client/components/posts/post.component.tsx -------------------------------------------------------------------------------- /src/client/components/posts/update.post.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/client/components/posts/update.post.tsx -------------------------------------------------------------------------------- /src/client/lib/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/client/lib/types.ts -------------------------------------------------------------------------------- /src/client/middleware/AuthMiddleware.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/client/middleware/AuthMiddleware.tsx -------------------------------------------------------------------------------- /src/client/store/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/client/store/index.ts -------------------------------------------------------------------------------- /src/client/utils/trpc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/client/utils/trpc.ts -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/pages/_document.tsx -------------------------------------------------------------------------------- /src/pages/api/hello.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/pages/api/hello.ts -------------------------------------------------------------------------------- /src/pages/api/trpc/[trpc].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/pages/api/trpc/[trpc].ts -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/pages/login.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/pages/login.tsx -------------------------------------------------------------------------------- /src/pages/profile.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/pages/profile.tsx -------------------------------------------------------------------------------- /src/pages/register.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/pages/register.tsx -------------------------------------------------------------------------------- /src/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/public/favicon.ico -------------------------------------------------------------------------------- /src/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/public/vercel.svg -------------------------------------------------------------------------------- /src/server/config/default.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/config/default.ts -------------------------------------------------------------------------------- /src/server/controllers/auth.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/controllers/auth.controller.ts -------------------------------------------------------------------------------- /src/server/controllers/post.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/controllers/post.controller.ts -------------------------------------------------------------------------------- /src/server/controllers/user.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/controllers/user.controller.ts -------------------------------------------------------------------------------- /src/server/createContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/createContext.ts -------------------------------------------------------------------------------- /src/server/createRouter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/createRouter.ts -------------------------------------------------------------------------------- /src/server/middleware/deserializeUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/middleware/deserializeUser.ts -------------------------------------------------------------------------------- /src/server/routers/app.routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/routers/app.routes.ts -------------------------------------------------------------------------------- /src/server/routers/auth.routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/routers/auth.routes.ts -------------------------------------------------------------------------------- /src/server/routers/post.routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/routers/post.routes.ts -------------------------------------------------------------------------------- /src/server/routers/user.routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/routers/user.routes.ts -------------------------------------------------------------------------------- /src/server/schema/post.schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/schema/post.schema.ts -------------------------------------------------------------------------------- /src/server/schema/user.schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/schema/user.schema.ts -------------------------------------------------------------------------------- /src/server/services/post.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/services/post.service.ts -------------------------------------------------------------------------------- /src/server/services/user.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/services/user.service.ts -------------------------------------------------------------------------------- /src/server/utils/connectRedis.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/utils/connectRedis.ts -------------------------------------------------------------------------------- /src/server/utils/jwt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/utils/jwt.ts -------------------------------------------------------------------------------- /src/server/utils/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/server/utils/prisma.ts -------------------------------------------------------------------------------- /src/styles/Home.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/styles/Home.module.css -------------------------------------------------------------------------------- /src/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/src/styles/globals.css -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpcodevo/trpc-nextjs-prisma/HEAD/yarn.lock --------------------------------------------------------------------------------