├── .eslintrc.json ├── .gitignore ├── README.md ├── app ├── api │ ├── data │ │ ├── product │ │ │ ├── products.ts │ │ │ └── types.ts │ │ └── user │ │ │ ├── types.ts │ │ │ └── users.ts │ ├── helper │ │ ├── createPayload.ts │ │ ├── filterProducts.ts │ │ ├── filterUsers.ts │ │ ├── parseQuery.ts │ │ ├── parseRequestBody.ts │ │ └── schema.ts │ ├── products │ │ ├── [id] │ │ │ └── route.ts │ │ ├── category │ │ │ └── route.ts │ │ └── route.ts │ └── users │ │ ├── [id] │ │ └── route.ts │ │ └── route.ts ├── components │ ├── About.tsx │ ├── CopyButton.tsx │ ├── Hero.tsx │ ├── Navbar.tsx │ ├── Resources.tsx │ ├── Route.tsx │ ├── ToggleTheme.tsx │ └── ui │ │ ├── button.tsx │ │ └── scroll-area.tsx ├── context │ └── HighlightContext.tsx ├── docs │ ├── Content.tsx │ ├── Sidebar.tsx │ ├── page.tsx │ ├── products │ │ ├── AddProduct.tsx │ │ ├── AllProducts.tsx │ │ ├── DeleteProduct.tsx │ │ ├── LimitedProduct.tsx │ │ ├── PaginationProduct.tsx │ │ ├── ProductCategory.tsx │ │ ├── ProductofCategory.tsx │ │ ├── SingleProduct.tsx │ │ ├── UpdateProduct.tsx │ │ ├── products.tsx │ │ └── snippets.tsx │ └── users │ │ ├── AddUser.tsx │ │ ├── AllUser.tsx │ │ ├── DeleteUser.tsx │ │ ├── LimitedUser.tsx │ │ ├── PaginationUser.tsx │ │ ├── SingleUser.tsx │ │ ├── UpdateUser.tsx │ │ ├── User.tsx │ │ └── snippets.tsx ├── favicon.ico ├── globals.css ├── hooks │ └── useCopyToClipboard.tsx ├── layout.tsx ├── lib │ ├── HighLight.tsx │ └── utils.ts ├── page.tsx ├── providers │ └── ThemeProvider.tsx └── sitemap.xml ├── components.json ├── next.config.mjs ├── package.json ├── postcss.config.js ├── public ├── Illustration.svg ├── next.svg ├── robots.txt ├── showcase.jpg └── vercel.svg ├── tailwind.config.ts └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/README.md -------------------------------------------------------------------------------- /app/api/data/product/products.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/api/data/product/products.ts -------------------------------------------------------------------------------- /app/api/data/product/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/api/data/product/types.ts -------------------------------------------------------------------------------- /app/api/data/user/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/api/data/user/types.ts -------------------------------------------------------------------------------- /app/api/data/user/users.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/api/data/user/users.ts -------------------------------------------------------------------------------- /app/api/helper/createPayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/api/helper/createPayload.ts -------------------------------------------------------------------------------- /app/api/helper/filterProducts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/api/helper/filterProducts.ts -------------------------------------------------------------------------------- /app/api/helper/filterUsers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/api/helper/filterUsers.ts -------------------------------------------------------------------------------- /app/api/helper/parseQuery.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/api/helper/parseQuery.ts -------------------------------------------------------------------------------- /app/api/helper/parseRequestBody.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/api/helper/parseRequestBody.ts -------------------------------------------------------------------------------- /app/api/helper/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/api/helper/schema.ts -------------------------------------------------------------------------------- /app/api/products/[id]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/api/products/[id]/route.ts -------------------------------------------------------------------------------- /app/api/products/category/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/api/products/category/route.ts -------------------------------------------------------------------------------- /app/api/products/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/api/products/route.ts -------------------------------------------------------------------------------- /app/api/users/[id]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/api/users/[id]/route.ts -------------------------------------------------------------------------------- /app/api/users/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/api/users/route.ts -------------------------------------------------------------------------------- /app/components/About.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/components/About.tsx -------------------------------------------------------------------------------- /app/components/CopyButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/components/CopyButton.tsx -------------------------------------------------------------------------------- /app/components/Hero.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/components/Hero.tsx -------------------------------------------------------------------------------- /app/components/Navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/components/Navbar.tsx -------------------------------------------------------------------------------- /app/components/Resources.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/components/Resources.tsx -------------------------------------------------------------------------------- /app/components/Route.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/components/Route.tsx -------------------------------------------------------------------------------- /app/components/ToggleTheme.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/components/ToggleTheme.tsx -------------------------------------------------------------------------------- /app/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/components/ui/button.tsx -------------------------------------------------------------------------------- /app/components/ui/scroll-area.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/components/ui/scroll-area.tsx -------------------------------------------------------------------------------- /app/context/HighlightContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/context/HighlightContext.tsx -------------------------------------------------------------------------------- /app/docs/Content.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/Content.tsx -------------------------------------------------------------------------------- /app/docs/Sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/Sidebar.tsx -------------------------------------------------------------------------------- /app/docs/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/page.tsx -------------------------------------------------------------------------------- /app/docs/products/AddProduct.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/products/AddProduct.tsx -------------------------------------------------------------------------------- /app/docs/products/AllProducts.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/products/AllProducts.tsx -------------------------------------------------------------------------------- /app/docs/products/DeleteProduct.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/products/DeleteProduct.tsx -------------------------------------------------------------------------------- /app/docs/products/LimitedProduct.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/products/LimitedProduct.tsx -------------------------------------------------------------------------------- /app/docs/products/PaginationProduct.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/products/PaginationProduct.tsx -------------------------------------------------------------------------------- /app/docs/products/ProductCategory.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/products/ProductCategory.tsx -------------------------------------------------------------------------------- /app/docs/products/ProductofCategory.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/products/ProductofCategory.tsx -------------------------------------------------------------------------------- /app/docs/products/SingleProduct.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/products/SingleProduct.tsx -------------------------------------------------------------------------------- /app/docs/products/UpdateProduct.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/products/UpdateProduct.tsx -------------------------------------------------------------------------------- /app/docs/products/products.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/products/products.tsx -------------------------------------------------------------------------------- /app/docs/products/snippets.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/products/snippets.tsx -------------------------------------------------------------------------------- /app/docs/users/AddUser.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/users/AddUser.tsx -------------------------------------------------------------------------------- /app/docs/users/AllUser.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/users/AllUser.tsx -------------------------------------------------------------------------------- /app/docs/users/DeleteUser.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/users/DeleteUser.tsx -------------------------------------------------------------------------------- /app/docs/users/LimitedUser.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/users/LimitedUser.tsx -------------------------------------------------------------------------------- /app/docs/users/PaginationUser.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/users/PaginationUser.tsx -------------------------------------------------------------------------------- /app/docs/users/SingleUser.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/users/SingleUser.tsx -------------------------------------------------------------------------------- /app/docs/users/UpdateUser.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/users/UpdateUser.tsx -------------------------------------------------------------------------------- /app/docs/users/User.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/users/User.tsx -------------------------------------------------------------------------------- /app/docs/users/snippets.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/docs/users/snippets.tsx -------------------------------------------------------------------------------- /app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/favicon.ico -------------------------------------------------------------------------------- /app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/globals.css -------------------------------------------------------------------------------- /app/hooks/useCopyToClipboard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/hooks/useCopyToClipboard.tsx -------------------------------------------------------------------------------- /app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/layout.tsx -------------------------------------------------------------------------------- /app/lib/HighLight.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/lib/HighLight.tsx -------------------------------------------------------------------------------- /app/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/lib/utils.ts -------------------------------------------------------------------------------- /app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/page.tsx -------------------------------------------------------------------------------- /app/providers/ThemeProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/providers/ThemeProvider.tsx -------------------------------------------------------------------------------- /app/sitemap.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/app/sitemap.xml -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/components.json -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/Illustration.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/public/Illustration.svg -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # Allow all crawlers 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /public/showcase.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/public/showcase.jpg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishal-gg/FakeStoreApi/HEAD/tsconfig.json --------------------------------------------------------------------------------