一个接入 DeepSeek-V3、DeepSeek-R1 大模型的极简 AI 对话页面. 由 NextJS 15 构建的全栈项目.
演示地址:https://dw-chat-next.dw1898.top
1.DeepSeek-V3、DeepSeek-R1 LLM
2.React 19
3.NextJS 15
4.shadcn/ui
5.tailwind css
6.drizzle-orm
7.postgresSQL
dw-chat-web-lite:纯前端版工程 Github:https://github.com/dawei1898/dw-chat-web-lite
dw-chat-web:前端工程 Github:https://github.com/dawei1898/dw-chat-web
dw-chat:后端工程 Github:https://github.com/dawei1898/dw-chat
dw-chat-next:next 全栈版工程 Github:https://github.com/dawei1898/dw-chat-next
/db/init-sql/init-ddl-postgres.sql
安装依赖
npm install
启动项目
npm run dev
shadcn/ui官网 https://ui.shadcn.com
Icon 库 https://heroicons.com
安装 shadcn/ui
npx shadcn@latest init
npm install tw-animate-css
添加组件
npx shadcn@latest add label
安装 主题
npm install next-themes
安装 markdown-it
npm install markdown-it --save
npm install @types/markdown-it --save-dev
代码高亮
npm install highlight.js
高亮样式
import 'highlight.js/styles/atom-one-light.css';
复制
npm install clipboard-polyfill
npm install use-immer
客户端 Cookie
npm install js-cookie @types/js-cookie
PostgreSQL 数据库驱动
npm install pg
npm install --save-dev @types/pg
数据库连接工具 drizzle
npm install drizzle-orm
用于迁移和工具
npm install drizzle-kit --save-dev
雪花算法
npm install snowflake-uid --save
openai 客户端
npm install openai
SSE 请求工具 fetch-event-source
npm install @microsoft/fetch-event-source
npm install swr
动画
npm install framer-motion