{"id":21888758,"url":"https://github.com/sesto-dev/next-prisma-tailwind-ecommerce","last_synced_at":"2025-10-08T17:19:30.930Z","repository":{"id":38005875,"uuid":"501375490","full_name":"sesto-dev/next-prisma-tailwind-ecommerce","owner":"sesto-dev","description":"✨ Open-Source Full-stack E-Commerce Storefront with CMS Admin Panel. Built with Typescript, Next.js 14 App Dir, Tailwind CSS ( @shadcn-ui ) and Prisma. Admin Panel: https://pardis.vercel.app","archived":false,"fork":false,"pushed_at":"2025-01-01T10:52:12.000Z","size":3842,"stargazers_count":270,"open_issues_count":2,"forks_count":57,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-05-11T16:49:10.953Z","etag":null,"topics":["authentication","ecommerce","email","full-stack","httponly-cookie","next-themes","nextjs","nodejs","postgresql","prisma","react","react-server-components","server-side-rendering","serverless","shadcn","shadcn-ui","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"https://pasargad.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sesto-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-08T18:56:50.000Z","updated_at":"2025-05-10T06:42:55.000Z","dependencies_parsed_at":"2024-07-25T10:03:52.601Z","dependency_job_id":"caabb0e3-52a5-4c01-aa1c-a11afe3a2ae4","html_url":"https://github.com/sesto-dev/next-prisma-tailwind-ecommerce","commit_stats":null,"previous_names":["accretence/next-prisma-tailwind-ecommerce","sesto-dev/next-prisma-tailwind-ecommerce"],"tags_count":6,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sesto-dev%2Fnext-prisma-tailwind-ecommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sesto-dev%2Fnext-prisma-tailwind-ecommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sesto-dev%2Fnext-prisma-tailwind-ecommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sesto-dev%2Fnext-prisma-tailwind-ecommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sesto-dev","download_url":"https://codeload.github.com/sesto-dev/next-prisma-tailwind-ecommerce/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254464895,"owners_count":22075570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","ecommerce","email","full-stack","httponly-cookie","next-themes","nextjs","nodejs","postgresql","prisma","react","react-server-components","server-side-rendering","serverless","shadcn","shadcn-ui","tailwindcss","typescript"],"created_at":"2024-11-28T11:17:11.393Z","updated_at":"2025-10-08T17:19:25.885Z","avatar_url":"https://github.com/sesto-dev.png","language":"TypeScript","funding_links":[],"categories":["Boilerplates \u0026 Starters"],"sub_categories":[],"readme":"![Screenshot](https://github.com/sesto-dev/next-prisma-tailwind-ecommerce/assets/45223699/00444538-a496-4f90-814f-7e57a580ad17)\n\n\u003cdiv align=\"center\"\u003e\u003ch3\u003eFull-Stack E-Commerce Platform\u003c/h3\u003e\u003cp\u003eBuilt using Typescript with Next.js, Prisma ORM and TailwindCSS.\u003c/p\u003e\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://pasargad.vercel.app\"\u003eStorefront\u003c/a\u003e \n\u003cspan\u003e · \u003c/span\u003e\n\u003ca href=\"https://pardis.vercel.app\"\u003eAdmin Panel\u003c/a\u003e\n\u003c/div\u003e\n\n## 👋 Introduction\n\nWelcome to the open-source Next.js E-Commerce Storefront with Admin Panel project! This project is built with TypeScript, Tailwind CSS, and Prisma, providing a powerful and flexible solution for building and managing your e-commerce website.\n\n## 🥂 Features\n\n-  [x] [**Next.js 14**](https://nextjs.org) App Router and React Server Components.\n-  [x] Custom dynamic `Sitemap.xml` generation.\n-  [x] Admin dashboard with products, orders, and payments.\n-  [x] File uploads using `next-cloudinary`.\n-  [x] Authentication using `middleware.ts` and `httpOnly` cookies.\n-  [x] Storefront with blog, products, and categories.\n-  [x] Database-Stored blogs powered by **MDX** templates.\n-  [x] Email verification and invoices using [react-email-tailwind-templates](https://github.com/sesto-dev/react-email-tailwind-templates).\n-  [x] [**TailwindCSS**](https://tailwindcss.com/) for utility-first CSS.\n-  [x] UI built with [**Radix**](https://www.radix-ui.com/) and stunning UI components, all thanks to [**shadcn/ui**](https://ui.shadcn.com/).\n-  [x] Type-Validation with **Zod**.\n-  [x] [**Next Metadata API**](https://nextjs.org/docs/api-reference/metadata) for SEO handling.\n-  [ ] Comprehensive implementations for i18n.\n\n## 2️⃣ Why are there 2 apps in the app folder?\n\nThis project is made up of 2 separate apps ( admin and storefront ) which should be deployed separately. If you are deploying with Vercel you should create 2 different apps.\n\n![image](https://github.com/Accretence/next-prisma-tailwind-ecommerce/assets/45223699/f5adc1ac-9dbb-46cb-bb6e-a8db15883348)\n\nUnder the general tab there is a Root Directory option, for the admin app you should put in \"apps/admin\" and for the storefront app you should put in \"apps/storefront\".\n\n## 🔐 Authentication\n\nThe authentication is handled using JWT tokens stored in cookies and verified inside the `middleware.ts` file. The middleware function takes in the HTTP request, reads the `token` cookie and if the JWT is successfully verified, it sets the `X-USER-ID` header with the userId as the value, otherwise the request is sent back with 401 status.\n\n## 👁‍🗨 Environment variables\n\nEnvironment variables are stored in `.env` files. By default the `.env.example` file is included in source control and contains\nsettings and defaults to get the app running. Any secrets or local overrides of these values should be placed in a\n`.env` file, which is ignored from source control.\n\nRemember, never commit and store `.env` in the source control, just only `.env.example` without any data specified.\n\nYou can [read more about environment variables here](https://nextjs.org/docs/basic-features/environment-variables).\n\n## 🏃‍♂️ Getting Started Locally\n\nClone the repository.\n\n```bash\ngit clone https://github.com/sesto-dev/next-prisma-tailwind-ecommerce\n```\n\nNavigate to each folder in the `apps` folder and and set the variables.\n\n```sh\ncp .env.example .env\n```\n\nGet all dependencies sorted.\n\n```sh\nbun install\n```\n\nBring your database to life with pushing the database schema.\n\n```bash\nbun run db:push\n```\n\n```sh\nbun run dev\n```\n\n## 🔑 Database\n\nPrisma ORM can use any PostgreSQL database. [Supabase is the easiest to work with.](https://www.prisma.io/docs/guides/database/supabase) Simply set `DATABASE_URL` in your `.env` file to work.\n\n### `bun run db`\n\nThis project exposes a package.json script for accessing prisma via `bun run db:\u003ccommand\u003e`. You should always try to use this script when interacting with prisma locally.\n\n### Making changes to the database schema\n\nMake changes to your database by modifying `prisma/schema.prisma`.\n\n## 🛸 How to Deploy the Project\n\nFollow the deployment guides for [Vercel](https://create.t3.gg/en/deployment/vercel), [Netlify](https://create.t3.gg/en/deployment/netlify) and [Docker](https://create.t3.gg/en/deployment/docker) for more information.\n\n## 📄 License\n\nThis project is MIT-licensed and is free to use and modify for your own projects. Check the [LICENSE](./LICENSE) file for details.\n\nCreated by [Amirhossein Mohammadi](https://github.com/sesto-dev).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsesto-dev%2Fnext-prisma-tailwind-ecommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsesto-dev%2Fnext-prisma-tailwind-ecommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsesto-dev%2Fnext-prisma-tailwind-ecommerce/lists"}