├── .env.local.example ├── .eslintrc ├── .gitignore ├── .husky ├── .gitignore └── pre-commit ├── .prettierrc ├── README.md ├── components ├── auth │ ├── SignInButton.tsx │ └── hooks │ │ └── useAuth.ts ├── cart │ ├── CartItem.tsx │ ├── CartItems.tsx │ ├── Checkout.tsx │ ├── api │ │ └── checkoutCart.ts │ ├── context │ │ ├── cartContext.tsx │ │ ├── reducers │ │ │ └── cartReducer.ts │ │ └── types.ts │ └── hooks │ │ ├── useCart.ts │ │ └── useCheckout.ts ├── layout │ ├── Layout.tsx │ ├── header │ │ └── Header.tsx │ └── logo │ │ └── Logo.tsx └── products │ ├── Product.tsx │ ├── Products.tsx │ ├── api │ ├── buyProduct.ts │ └── getProducts.ts │ ├── hooks │ ├── useBuyProduct.ts │ └── useGetProducts.ts │ └── utils │ ├── schemas.ts │ └── transforms.ts ├── docker-compose.yml ├── next-env.d.ts ├── package.json ├── pages ├── 404.tsx ├── _app.tsx ├── _document.tsx ├── _error.tsx ├── api │ ├── auth │ │ └── [...nextauth].tsx │ ├── checkout │ │ └── products │ │ │ └── index.ts │ └── products │ │ └── index.ts ├── auth │ └── signin.tsx └── index.tsx ├── postcss.config.js ├── prisma ├── migrations │ ├── 20211126172202_init │ │ └── migration.sql │ └── migration_lock.toml └── schema.prisma ├── public ├── favicon.ico └── vercel.svg ├── sentry.client.config.js ├── sentry.server.config.js ├── tailwind.config.js ├── tsconfig.json ├── typings ├── next-auth.d.ts └── next.d.ts └── utils ├── env.ts ├── fetcher.ts ├── responseError.ts ├── stripe.ts └── types.ts /.env.local.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/.env.local.example -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/README.md -------------------------------------------------------------------------------- /components/auth/SignInButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/auth/SignInButton.tsx -------------------------------------------------------------------------------- /components/auth/hooks/useAuth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/auth/hooks/useAuth.ts -------------------------------------------------------------------------------- /components/cart/CartItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/cart/CartItem.tsx -------------------------------------------------------------------------------- /components/cart/CartItems.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/cart/CartItems.tsx -------------------------------------------------------------------------------- /components/cart/Checkout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/cart/Checkout.tsx -------------------------------------------------------------------------------- /components/cart/api/checkoutCart.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/cart/api/checkoutCart.ts -------------------------------------------------------------------------------- /components/cart/context/cartContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/cart/context/cartContext.tsx -------------------------------------------------------------------------------- /components/cart/context/reducers/cartReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/cart/context/reducers/cartReducer.ts -------------------------------------------------------------------------------- /components/cart/context/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/cart/context/types.ts -------------------------------------------------------------------------------- /components/cart/hooks/useCart.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/cart/hooks/useCart.ts -------------------------------------------------------------------------------- /components/cart/hooks/useCheckout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/cart/hooks/useCheckout.ts -------------------------------------------------------------------------------- /components/layout/Layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/layout/Layout.tsx -------------------------------------------------------------------------------- /components/layout/header/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/layout/header/Header.tsx -------------------------------------------------------------------------------- /components/layout/logo/Logo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/layout/logo/Logo.tsx -------------------------------------------------------------------------------- /components/products/Product.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/products/Product.tsx -------------------------------------------------------------------------------- /components/products/Products.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/products/Products.tsx -------------------------------------------------------------------------------- /components/products/api/buyProduct.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/products/api/buyProduct.ts -------------------------------------------------------------------------------- /components/products/api/getProducts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/products/api/getProducts.ts -------------------------------------------------------------------------------- /components/products/hooks/useBuyProduct.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/products/hooks/useBuyProduct.ts -------------------------------------------------------------------------------- /components/products/hooks/useGetProducts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/products/hooks/useGetProducts.ts -------------------------------------------------------------------------------- /components/products/utils/schemas.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/products/utils/schemas.ts -------------------------------------------------------------------------------- /components/products/utils/transforms.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/components/products/utils/transforms.ts -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/package.json -------------------------------------------------------------------------------- /pages/404.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/pages/404.tsx -------------------------------------------------------------------------------- /pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/pages/_app.tsx -------------------------------------------------------------------------------- /pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/pages/_document.tsx -------------------------------------------------------------------------------- /pages/_error.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/pages/_error.tsx -------------------------------------------------------------------------------- /pages/api/auth/[...nextauth].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/pages/api/auth/[...nextauth].tsx -------------------------------------------------------------------------------- /pages/api/checkout/products/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/pages/api/checkout/products/index.ts -------------------------------------------------------------------------------- /pages/api/products/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/pages/api/products/index.ts -------------------------------------------------------------------------------- /pages/auth/signin.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/pages/auth/signin.tsx -------------------------------------------------------------------------------- /pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/pages/index.tsx -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/postcss.config.js -------------------------------------------------------------------------------- /prisma/migrations/20211126172202_init/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/prisma/migrations/20211126172202_init/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /sentry.client.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/sentry.client.config.js -------------------------------------------------------------------------------- /sentry.server.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/sentry.server.config.js -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/tsconfig.json -------------------------------------------------------------------------------- /typings/next-auth.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/typings/next-auth.d.ts -------------------------------------------------------------------------------- /typings/next.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/typings/next.d.ts -------------------------------------------------------------------------------- /utils/env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/utils/env.ts -------------------------------------------------------------------------------- /utils/fetcher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/utils/fetcher.ts -------------------------------------------------------------------------------- /utils/responseError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/utils/responseError.ts -------------------------------------------------------------------------------- /utils/stripe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/utils/stripe.ts -------------------------------------------------------------------------------- /utils/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytenomad092/E-commerce/HEAD/utils/types.ts --------------------------------------------------------------------------------