├── .eslintrc.js ├── .github └── dependabot.yml ├── .gitignore ├── .vscode ├── extensions.json └── settings.json ├── README.md ├── apps ├── admin │ ├── .env.example │ ├── .eslintrc.js │ ├── .prettierrc.js │ ├── README.md │ ├── apollo │ │ └── index.ts │ ├── const │ │ └── index.ts │ ├── helpers │ │ └── isWindowPresent.ts │ ├── next-env.d.ts │ ├── next.config.js │ ├── package.json │ ├── pages │ │ ├── _app.tsx │ │ └── index.tsx │ ├── src │ │ ├── hooks │ │ │ └── useApollo.tsx │ │ └── pages │ │ │ └── Home │ │ │ ├── Home.tsx │ │ │ ├── index.tsx │ │ │ └── querySearchArticles.graphql │ └── tsconfig.json ├── api │ ├── .eslintrc.js │ ├── .prettierrc.js │ ├── package.json │ ├── schema.graphql │ ├── src │ │ ├── builder.ts │ │ ├── context │ │ │ └── index.ts │ │ ├── db │ │ │ └── index.ts │ │ ├── helpers │ │ │ └── updateFieldHelper.ts │ │ ├── main.ts │ │ ├── prisma │ │ │ ├── migrations │ │ │ │ ├── 20230218054824_initial │ │ │ │ │ └── migration.sql │ │ │ │ └── migration_lock.toml │ │ │ ├── schema.prisma │ │ │ └── seed.ts │ │ ├── schema.ts │ │ └── schema │ │ │ ├── Article │ │ │ ├── index.ts │ │ │ ├── mutations.ts │ │ │ └── queries.ts │ │ │ ├── Scalars │ │ │ └── index.ts │ │ │ ├── User │ │ │ ├── index.ts │ │ │ ├── mutations.ts │ │ │ └── queries.ts │ │ │ └── index.ts │ └── tsconfig.json └── web │ ├── .env.example │ ├── .eslintrc.js │ ├── .prettierrc.js │ ├── README.md │ ├── apollo │ └── index.ts │ ├── const │ └── index.ts │ ├── helpers │ └── isWindowPresent.ts │ ├── next-env.d.ts │ ├── next.config.js │ ├── package.json │ ├── pages │ ├── _app.tsx │ └── index.tsx │ ├── src │ ├── hooks │ │ └── useApollo.tsx │ └── pages │ │ └── Home │ │ ├── Home.tsx │ │ ├── index.tsx │ │ └── querySearchArticles.graphql │ └── tsconfig.json ├── package.json ├── packages ├── apollo-hooks │ ├── codegen.yml │ ├── generated │ │ └── index.tsx │ ├── index.tsx │ ├── package.json │ ├── tsconfig.json │ └── tsup.config.ts ├── config │ ├── eslint-preset.js │ ├── package.json │ └── prettier-preset.js ├── tsconfig │ ├── README.md │ ├── base.json │ ├── nextjs.json │ ├── package.json │ └── react-library.json └── ui │ ├── Button.tsx │ ├── index.tsx │ ├── package.json │ └── tsconfig.json ├── turbo.json └── yarn.lock /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/README.md -------------------------------------------------------------------------------- /apps/admin/.env.example: -------------------------------------------------------------------------------- 1 | # Next.js + Apollo Client 2 | NEXT_PUBLIC_SERVER_URL="http://localhost:8080/graphql" 3 | -------------------------------------------------------------------------------- /apps/admin/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = require("config/eslint-preset"); 2 | -------------------------------------------------------------------------------- /apps/admin/.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = require('config/prettier-preset'); 2 | -------------------------------------------------------------------------------- /apps/admin/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/admin/README.md -------------------------------------------------------------------------------- /apps/admin/apollo/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/admin/apollo/index.ts -------------------------------------------------------------------------------- /apps/admin/const/index.ts: -------------------------------------------------------------------------------- 1 | export const TOKEN_NAME = 'admin-turbo-pothos-prisma-nextjs'; 2 | -------------------------------------------------------------------------------- /apps/admin/helpers/isWindowPresent.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/admin/helpers/isWindowPresent.ts -------------------------------------------------------------------------------- /apps/admin/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/admin/next-env.d.ts -------------------------------------------------------------------------------- /apps/admin/next.config.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = { 3 | reactStrictMode: true, 4 | }; 5 | -------------------------------------------------------------------------------- /apps/admin/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/admin/package.json -------------------------------------------------------------------------------- /apps/admin/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/admin/pages/_app.tsx -------------------------------------------------------------------------------- /apps/admin/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/admin/pages/index.tsx -------------------------------------------------------------------------------- /apps/admin/src/hooks/useApollo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/admin/src/hooks/useApollo.tsx -------------------------------------------------------------------------------- /apps/admin/src/pages/Home/Home.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/admin/src/pages/Home/Home.tsx -------------------------------------------------------------------------------- /apps/admin/src/pages/Home/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/admin/src/pages/Home/index.tsx -------------------------------------------------------------------------------- /apps/admin/src/pages/Home/querySearchArticles.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/admin/src/pages/Home/querySearchArticles.graphql -------------------------------------------------------------------------------- /apps/admin/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/admin/tsconfig.json -------------------------------------------------------------------------------- /apps/api/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = require('config/eslint-preset'); 2 | -------------------------------------------------------------------------------- /apps/api/.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = require('config/prettier-preset'); 2 | -------------------------------------------------------------------------------- /apps/api/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/package.json -------------------------------------------------------------------------------- /apps/api/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/schema.graphql -------------------------------------------------------------------------------- /apps/api/src/builder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/src/builder.ts -------------------------------------------------------------------------------- /apps/api/src/context/index.ts: -------------------------------------------------------------------------------- 1 | export type Context = { 2 | accessToken: string; 3 | }; 4 | -------------------------------------------------------------------------------- /apps/api/src/db/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/src/db/index.ts -------------------------------------------------------------------------------- /apps/api/src/helpers/updateFieldHelper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/src/helpers/updateFieldHelper.ts -------------------------------------------------------------------------------- /apps/api/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/src/main.ts -------------------------------------------------------------------------------- /apps/api/src/prisma/migrations/20230218054824_initial/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/src/prisma/migrations/20230218054824_initial/migration.sql -------------------------------------------------------------------------------- /apps/api/src/prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/src/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /apps/api/src/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/src/prisma/schema.prisma -------------------------------------------------------------------------------- /apps/api/src/prisma/seed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/src/prisma/seed.ts -------------------------------------------------------------------------------- /apps/api/src/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/src/schema.ts -------------------------------------------------------------------------------- /apps/api/src/schema/Article/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/src/schema/Article/index.ts -------------------------------------------------------------------------------- /apps/api/src/schema/Article/mutations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/src/schema/Article/mutations.ts -------------------------------------------------------------------------------- /apps/api/src/schema/Article/queries.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/src/schema/Article/queries.ts -------------------------------------------------------------------------------- /apps/api/src/schema/Scalars/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/src/schema/Scalars/index.ts -------------------------------------------------------------------------------- /apps/api/src/schema/User/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/src/schema/User/index.ts -------------------------------------------------------------------------------- /apps/api/src/schema/User/mutations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/src/schema/User/mutations.ts -------------------------------------------------------------------------------- /apps/api/src/schema/User/queries.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/src/schema/User/queries.ts -------------------------------------------------------------------------------- /apps/api/src/schema/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/src/schema/index.ts -------------------------------------------------------------------------------- /apps/api/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/api/tsconfig.json -------------------------------------------------------------------------------- /apps/web/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/web/.env.example -------------------------------------------------------------------------------- /apps/web/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = require("config/eslint-preset"); 2 | -------------------------------------------------------------------------------- /apps/web/.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = require('config/prettier-preset'); 2 | -------------------------------------------------------------------------------- /apps/web/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/web/README.md -------------------------------------------------------------------------------- /apps/web/apollo/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/web/apollo/index.ts -------------------------------------------------------------------------------- /apps/web/const/index.ts: -------------------------------------------------------------------------------- 1 | export const TOKEN_NAME = 'turbo-pothos-prisma-nextjs'; 2 | -------------------------------------------------------------------------------- /apps/web/helpers/isWindowPresent.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/web/helpers/isWindowPresent.ts -------------------------------------------------------------------------------- /apps/web/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/web/next-env.d.ts -------------------------------------------------------------------------------- /apps/web/next.config.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = { 3 | reactStrictMode: true, 4 | }; 5 | -------------------------------------------------------------------------------- /apps/web/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/web/package.json -------------------------------------------------------------------------------- /apps/web/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/web/pages/_app.tsx -------------------------------------------------------------------------------- /apps/web/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/web/pages/index.tsx -------------------------------------------------------------------------------- /apps/web/src/hooks/useApollo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/web/src/hooks/useApollo.tsx -------------------------------------------------------------------------------- /apps/web/src/pages/Home/Home.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/web/src/pages/Home/Home.tsx -------------------------------------------------------------------------------- /apps/web/src/pages/Home/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/web/src/pages/Home/index.tsx -------------------------------------------------------------------------------- /apps/web/src/pages/Home/querySearchArticles.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/web/src/pages/Home/querySearchArticles.graphql -------------------------------------------------------------------------------- /apps/web/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/apps/web/tsconfig.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/package.json -------------------------------------------------------------------------------- /packages/apollo-hooks/codegen.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/packages/apollo-hooks/codegen.yml -------------------------------------------------------------------------------- /packages/apollo-hooks/generated/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/packages/apollo-hooks/generated/index.tsx -------------------------------------------------------------------------------- /packages/apollo-hooks/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/packages/apollo-hooks/index.tsx -------------------------------------------------------------------------------- /packages/apollo-hooks/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/packages/apollo-hooks/package.json -------------------------------------------------------------------------------- /packages/apollo-hooks/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/packages/apollo-hooks/tsconfig.json -------------------------------------------------------------------------------- /packages/apollo-hooks/tsup.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/packages/apollo-hooks/tsup.config.ts -------------------------------------------------------------------------------- /packages/config/eslint-preset.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/packages/config/eslint-preset.js -------------------------------------------------------------------------------- /packages/config/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/packages/config/package.json -------------------------------------------------------------------------------- /packages/config/prettier-preset.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/packages/config/prettier-preset.js -------------------------------------------------------------------------------- /packages/tsconfig/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/packages/tsconfig/README.md -------------------------------------------------------------------------------- /packages/tsconfig/base.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/packages/tsconfig/base.json -------------------------------------------------------------------------------- /packages/tsconfig/nextjs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/packages/tsconfig/nextjs.json -------------------------------------------------------------------------------- /packages/tsconfig/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/packages/tsconfig/package.json -------------------------------------------------------------------------------- /packages/tsconfig/react-library.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/packages/tsconfig/react-library.json -------------------------------------------------------------------------------- /packages/ui/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/packages/ui/Button.tsx -------------------------------------------------------------------------------- /packages/ui/index.tsx: -------------------------------------------------------------------------------- 1 | export * from './Button'; 2 | -------------------------------------------------------------------------------- /packages/ui/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/packages/ui/package.json -------------------------------------------------------------------------------- /packages/ui/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/packages/ui/tsconfig.json -------------------------------------------------------------------------------- /turbo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/turbo.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ivanms1/turbo-pothos-prisma-nextjs-template/HEAD/yarn.lock --------------------------------------------------------------------------------