├── .eslintrc.json ├── .githooks └── pre-commit ├── .gitignore ├── .prettierrc ├── .vscode └── settings.json ├── Dockerfile ├── README.md ├── codegen.yml ├── graphql └── schema.graphql ├── next-env.d.ts ├── package.json ├── src ├── components │ └── seo │ │ └── DefaultSeo.tsx ├── context │ └── modal.tsx ├── env │ ├── .env.dev │ ├── .env.local │ ├── .env.prod │ └── index.ts ├── graphqlClient │ ├── apollo.ts │ ├── mutation │ │ └── saveUser.graphql │ └── query │ │ └── user.graphql ├── graphqlServer │ ├── errors │ │ └── condition.ts │ ├── index.ts │ ├── plugins │ │ └── logging.ts │ └── resolvers │ │ ├── context.ts │ │ ├── datasources │ │ └── index.ts │ │ ├── directives │ │ ├── authorization.ts │ │ └── index.ts │ │ ├── entity │ │ └── user.ts │ │ ├── index.ts │ │ ├── loaders │ │ └── user.ts │ │ ├── mutation │ │ └── index.ts │ │ ├── query │ │ └── index.ts │ │ └── scalars │ │ └── dateTime.ts ├── helper │ └── array.ts ├── hooks │ └── useCustomToast.ts ├── lib │ └── logger.ts ├── pages │ ├── 404.tsx │ ├── _app.tsx │ ├── _error.tsx │ ├── api │ │ └── graphql.tsx │ └── index.tsx └── types │ ├── generated │ ├── clientGraphql.tsx │ └── serverGraphql.d.ts │ └── server │ └── context.d.ts └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.githooks/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | npm run pre-commit 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/README.md -------------------------------------------------------------------------------- /codegen.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/codegen.yml -------------------------------------------------------------------------------- /graphql/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/graphql/schema.graphql -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/package.json -------------------------------------------------------------------------------- /src/components/seo/DefaultSeo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/components/seo/DefaultSeo.tsx -------------------------------------------------------------------------------- /src/context/modal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/context/modal.tsx -------------------------------------------------------------------------------- /src/env/.env.dev: -------------------------------------------------------------------------------- 1 | NEXT_PUBLIC_APP_ENV=dev 2 | -------------------------------------------------------------------------------- /src/env/.env.local: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/env/.env.local -------------------------------------------------------------------------------- /src/env/.env.prod: -------------------------------------------------------------------------------- 1 | NEXT_PUBLIC_APP_ENV=prod 2 | -------------------------------------------------------------------------------- /src/env/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/env/index.ts -------------------------------------------------------------------------------- /src/graphqlClient/apollo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/graphqlClient/apollo.ts -------------------------------------------------------------------------------- /src/graphqlClient/mutation/saveUser.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/graphqlClient/mutation/saveUser.graphql -------------------------------------------------------------------------------- /src/graphqlClient/query/user.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/graphqlClient/query/user.graphql -------------------------------------------------------------------------------- /src/graphqlServer/errors/condition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/graphqlServer/errors/condition.ts -------------------------------------------------------------------------------- /src/graphqlServer/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/graphqlServer/index.ts -------------------------------------------------------------------------------- /src/graphqlServer/plugins/logging.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/graphqlServer/plugins/logging.ts -------------------------------------------------------------------------------- /src/graphqlServer/resolvers/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/graphqlServer/resolvers/context.ts -------------------------------------------------------------------------------- /src/graphqlServer/resolvers/datasources/index.ts: -------------------------------------------------------------------------------- 1 | export const dataSources = () => ({}) 2 | -------------------------------------------------------------------------------- /src/graphqlServer/resolvers/directives/authorization.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/graphqlServer/resolvers/directives/authorization.ts -------------------------------------------------------------------------------- /src/graphqlServer/resolvers/directives/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/graphqlServer/resolvers/directives/index.ts -------------------------------------------------------------------------------- /src/graphqlServer/resolvers/entity/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/graphqlServer/resolvers/entity/user.ts -------------------------------------------------------------------------------- /src/graphqlServer/resolvers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/graphqlServer/resolvers/index.ts -------------------------------------------------------------------------------- /src/graphqlServer/resolvers/loaders/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/graphqlServer/resolvers/loaders/user.ts -------------------------------------------------------------------------------- /src/graphqlServer/resolvers/mutation/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/graphqlServer/resolvers/mutation/index.ts -------------------------------------------------------------------------------- /src/graphqlServer/resolvers/query/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/graphqlServer/resolvers/query/index.ts -------------------------------------------------------------------------------- /src/graphqlServer/resolvers/scalars/dateTime.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/graphqlServer/resolvers/scalars/dateTime.ts -------------------------------------------------------------------------------- /src/helper/array.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/helper/array.ts -------------------------------------------------------------------------------- /src/hooks/useCustomToast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/hooks/useCustomToast.ts -------------------------------------------------------------------------------- /src/lib/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/lib/logger.ts -------------------------------------------------------------------------------- /src/pages/404.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/pages/404.tsx -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/_error.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/pages/_error.tsx -------------------------------------------------------------------------------- /src/pages/api/graphql.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/pages/api/graphql.tsx -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/types/generated/clientGraphql.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/types/generated/clientGraphql.tsx -------------------------------------------------------------------------------- /src/types/generated/serverGraphql.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/types/generated/serverGraphql.d.ts -------------------------------------------------------------------------------- /src/types/server/context.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/src/types/server/context.d.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mogaming217/nextjs-apollo-template/HEAD/tsconfig.json --------------------------------------------------------------------------------