├── .env.example ├── .eslintrc.json ├── .gitignore ├── .prettierrc ├── .vscode └── settings.json ├── README.md ├── app ├── api │ └── hello │ │ └── route.js ├── components │ ├── cart-slider.jsx │ ├── layout │ │ ├── footer.tsx │ │ └── header.tsx │ ├── product.jsx │ ├── products.jsx │ └── ui │ │ └── loading.jsx ├── dashboard │ └── page.jsx ├── globals.css ├── layout.jsx ├── page.jsx ├── products │ ├── [slug] │ │ └── page.jsx │ └── page.jsx ├── sign-in │ └── page.jsx └── sign-up │ └── page.jsx ├── lib ├── constants.js ├── swell │ ├── cart.js │ ├── client.js │ └── products.js └── utils │ └── index.js ├── middleware.js ├── next-env.d.ts ├── next.config.js ├── package.json ├── pnpm-lock.yaml ├── postcss.config.js ├── public ├── favicon.ico ├── images │ └── hero.jpg ├── next.svg ├── thirteen.svg └── vercel.svg ├── tailwind.config.js └── tsconfig.json /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/README.md -------------------------------------------------------------------------------- /app/api/hello/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/app/api/hello/route.js -------------------------------------------------------------------------------- /app/components/cart-slider.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/app/components/cart-slider.jsx -------------------------------------------------------------------------------- /app/components/layout/footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/app/components/layout/footer.tsx -------------------------------------------------------------------------------- /app/components/layout/header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/app/components/layout/header.tsx -------------------------------------------------------------------------------- /app/components/product.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/app/components/product.jsx -------------------------------------------------------------------------------- /app/components/products.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/app/components/products.jsx -------------------------------------------------------------------------------- /app/components/ui/loading.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/app/components/ui/loading.jsx -------------------------------------------------------------------------------- /app/dashboard/page.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/app/dashboard/page.jsx -------------------------------------------------------------------------------- /app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/app/globals.css -------------------------------------------------------------------------------- /app/layout.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/app/layout.jsx -------------------------------------------------------------------------------- /app/page.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/app/page.jsx -------------------------------------------------------------------------------- /app/products/[slug]/page.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/app/products/[slug]/page.jsx -------------------------------------------------------------------------------- /app/products/page.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/app/products/page.jsx -------------------------------------------------------------------------------- /app/sign-in/page.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/app/sign-in/page.jsx -------------------------------------------------------------------------------- /app/sign-up/page.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/app/sign-up/page.jsx -------------------------------------------------------------------------------- /lib/constants.js: -------------------------------------------------------------------------------- 1 | export const PRODUCTS_PER_PAGE = 25 2 | -------------------------------------------------------------------------------- /lib/swell/cart.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/lib/swell/cart.js -------------------------------------------------------------------------------- /lib/swell/client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/lib/swell/client.js -------------------------------------------------------------------------------- /lib/swell/products.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/lib/swell/products.js -------------------------------------------------------------------------------- /lib/utils/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/lib/utils/index.js -------------------------------------------------------------------------------- /middleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/middleware.js -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/images/hero.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/public/images/hero.jpg -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/thirteen.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/public/thirteen.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamedBahram/next-ecomm/HEAD/tsconfig.json --------------------------------------------------------------------------------