百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

next-prisma-tailwind-ecommerce

> 前端框架
开源

✨ 开源的全栈电子商务商店前台,带有 CMS 管理面板。使用 TypeScript、Next.js 14 应用目录、Tailwind CSS(@shadcn-ui)和 Prisma 构建。管理面板

380 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

✨ 开源的全栈电子商务商店前台,带有 CMS 管理面板。使用 TypeScript、Next.js 14 应用目录、Tailwind CSS(@shadcn-ui)和 Prisma 构建。管理面板

Introduction

Welcome 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.

Features

  • Next.js 14 App Router and React Server Components.
  • Custom dynamic Sitemap.xml generation.
  • Admin dashboard with products, orders, and payments.
  • File uploads using next-cloudinary.
  • Authentication using middleware.ts and httpOnly cookies.
  • Storefront with blog, products, and categories.
  • Database-Stored blogs powered by MDX templates.
  • Email verification and invoices using react-email-tailwind-templates.
  • TailwindCSS for utility-first CSS.
  • UI built with Radix and stunning UI components, all thanks to shadcn/ui.
  • Type-Validation with Zod.
  • Next Metadata API for SEO handling.
  • Comprehensive implementations for i18n.

2️⃣ Why are there 2 apps in the app folder?

This 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.

Under 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".

Authentication

The 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.

‍ Environment variables

Environment variables are stored in .env files. By default the .env.example file is included in source control and contains settings and defaults to get the app running. Any secrets or local overrides of these values should be placed in a .env file, which is ignored from source control.

Remember, never commit and store .env in the source control, just only .env.example without any data specified.

You can read more about environment variables here.

‍♂️ Getting Started Locally

Clone the repository.

bash
git clone https://github.com/sesto-dev/next-prisma-tailwind-ecommerce

Navigate to each folder in the apps folder and and set the variables.

bash
cp .env.example .env

Get all dependencies sorted.

bash
bun install

Bring your database to life with pushing the database schema.

bash
bun run db:push
bash
bun run dev

Database

Prisma ORM can use any PostgreSQL database. Supabase is the easiest to work with. Simply set DATABASE_URL in your .env file to work.

bun run db

This project exposes a package.json script for accessing prisma via bun run db:. You should always try to use this script when interacting with prisma locally.

Making changes to the database schema

Make changes to your database by modifying prisma/schema.prisma.

How to Deploy the Project

Follow the deployment guides for Vercel, Netlify and Docker for more information.

License

This project is MIT-licensed and is free to use and modify for your own projects. Check the LICENSE file for details.

Created by Amirhossein Mohammadi.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptauthenticationecommerceemailfull-stack

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架