├── .dockerignore ├── .env.example ├── .github └── workflows │ └── ci.yaml ├── .gitignore ├── .npmrc ├── Dockerfile ├── README.md ├── apollo.config.js ├── app ├── components │ ├── cart-line-item.tsx │ ├── footer.tsx │ ├── navbar.tsx │ └── product-card.tsx ├── context.server.ts ├── entry.client.tsx ├── entry.server.tsx ├── libs │ ├── prisma.server.ts │ ├── redis.server.ts │ └── shopify.server.ts ├── root.tsx ├── routes │ ├── __auth.tsx │ ├── __auth │ │ ├── login.tsx │ │ ├── logout.ts │ │ └── signup.tsx │ ├── admin │ │ └── cache-segments.tsx │ ├── cart │ │ ├── add.ts │ │ ├── index.tsx │ │ ├── remove.ts │ │ └── update.ts │ ├── index.tsx │ ├── p.$slug.tsx │ └── profile.tsx ├── sessions.server.ts ├── styles │ └── global.css └── utils │ ├── auth.server.ts │ ├── format.ts │ ├── gql.ts │ └── headers.server.ts ├── codegen.yml ├── commerce-provider ├── graphql │ └── shopify.ts ├── index.ts └── shopify.ts ├── docker-compose.yml ├── fly.toml ├── graphql.config.js ├── package.json ├── patches └── @remix-run+dev+0.19.3.patch ├── prisma ├── migrations │ ├── 20211014020840_init │ │ └── migration.sql │ ├── 20211014061821_password │ │ └── migration.sql │ ├── 20211014064831_newsletter │ │ └── migration.sql │ └── migration_lock.toml └── schema.prisma ├── public └── favicon.png ├── remix.config.js ├── remix.env.d.ts ├── remix └── express-swr.ts ├── scripts ├── build-docker.sh ├── build-server.js ├── clear-redis-cache.js └── remove-all-users.js ├── server.ts ├── tailwind.config.js └── tsconfig.json /.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | Dockerfile 3 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/.env.example -------------------------------------------------------------------------------- /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/.npmrc -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/README.md -------------------------------------------------------------------------------- /apollo.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/apollo.config.js -------------------------------------------------------------------------------- /app/components/cart-line-item.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/components/cart-line-item.tsx -------------------------------------------------------------------------------- /app/components/footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/components/footer.tsx -------------------------------------------------------------------------------- /app/components/navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/components/navbar.tsx -------------------------------------------------------------------------------- /app/components/product-card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/components/product-card.tsx -------------------------------------------------------------------------------- /app/context.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/context.server.ts -------------------------------------------------------------------------------- /app/entry.client.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/entry.client.tsx -------------------------------------------------------------------------------- /app/entry.server.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/entry.server.tsx -------------------------------------------------------------------------------- /app/libs/prisma.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/libs/prisma.server.ts -------------------------------------------------------------------------------- /app/libs/redis.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/libs/redis.server.ts -------------------------------------------------------------------------------- /app/libs/shopify.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/libs/shopify.server.ts -------------------------------------------------------------------------------- /app/root.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/root.tsx -------------------------------------------------------------------------------- /app/routes/__auth.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/routes/__auth.tsx -------------------------------------------------------------------------------- /app/routes/__auth/login.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/routes/__auth/login.tsx -------------------------------------------------------------------------------- /app/routes/__auth/logout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/routes/__auth/logout.ts -------------------------------------------------------------------------------- /app/routes/__auth/signup.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/routes/__auth/signup.tsx -------------------------------------------------------------------------------- /app/routes/admin/cache-segments.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/routes/admin/cache-segments.tsx -------------------------------------------------------------------------------- /app/routes/cart/add.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/routes/cart/add.ts -------------------------------------------------------------------------------- /app/routes/cart/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/routes/cart/index.tsx -------------------------------------------------------------------------------- /app/routes/cart/remove.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/routes/cart/remove.ts -------------------------------------------------------------------------------- /app/routes/cart/update.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/routes/cart/update.ts -------------------------------------------------------------------------------- /app/routes/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/routes/index.tsx -------------------------------------------------------------------------------- /app/routes/p.$slug.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/routes/p.$slug.tsx -------------------------------------------------------------------------------- /app/routes/profile.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/routes/profile.tsx -------------------------------------------------------------------------------- /app/sessions.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/sessions.server.ts -------------------------------------------------------------------------------- /app/styles/global.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/styles/global.css -------------------------------------------------------------------------------- /app/utils/auth.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/utils/auth.server.ts -------------------------------------------------------------------------------- /app/utils/format.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/utils/format.ts -------------------------------------------------------------------------------- /app/utils/gql.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/utils/gql.ts -------------------------------------------------------------------------------- /app/utils/headers.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/app/utils/headers.server.ts -------------------------------------------------------------------------------- /codegen.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/codegen.yml -------------------------------------------------------------------------------- /commerce-provider/graphql/shopify.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/commerce-provider/graphql/shopify.ts -------------------------------------------------------------------------------- /commerce-provider/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/commerce-provider/index.ts -------------------------------------------------------------------------------- /commerce-provider/shopify.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/commerce-provider/shopify.ts -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /fly.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/fly.toml -------------------------------------------------------------------------------- /graphql.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/graphql.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/package.json -------------------------------------------------------------------------------- /patches/@remix-run+dev+0.19.3.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/patches/@remix-run+dev+0.19.3.patch -------------------------------------------------------------------------------- /prisma/migrations/20211014020840_init/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/prisma/migrations/20211014020840_init/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20211014061821_password/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/prisma/migrations/20211014061821_password/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20211014064831_newsletter/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/prisma/migrations/20211014064831_newsletter/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /public/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/public/favicon.png -------------------------------------------------------------------------------- /remix.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/remix.config.js -------------------------------------------------------------------------------- /remix.env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/remix.env.d.ts -------------------------------------------------------------------------------- /remix/express-swr.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/remix/express-swr.ts -------------------------------------------------------------------------------- /scripts/build-docker.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/scripts/build-docker.sh -------------------------------------------------------------------------------- /scripts/build-server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/scripts/build-server.js -------------------------------------------------------------------------------- /scripts/clear-redis-cache.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/scripts/clear-redis-cache.js -------------------------------------------------------------------------------- /scripts/remove-all-users.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/scripts/remove-all-users.js -------------------------------------------------------------------------------- /server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/server.ts -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jacob-ebey/remix-auth-layouts-example/HEAD/tsconfig.json --------------------------------------------------------------------------------