Giter Club home page Giter Club logo

chatgptweb's Introduction

ChatGPT Web

ChatGPT Web

基于 79E/ChatGpt-Web 项目二次开发的商业化 ChatGpt 网页应用。

演示

如需帮助请提交 Issues 时留下联系方式。

页面截图

页面截图1 页面截图2 页面截图3 页面截图4

主要功能

  • 后台管理系统,可对用户,Token,商品,卡密等进行管理
  • 精心设计的 UI,响应式设计
  • 极快的首屏加载速度(~100kb)
  • 支持 DALL·E 模型绘画,GPT4 等应用
  • 海量的内置 prompt 列表,来自中文英文
  • 一键导出聊天记录
  • 支持自定义API地址(如:openAI / API2D

运行环境

  • Node 版本: node 需要 ^16 || ^18 || ^19 版本(node >= 16.19.0),可以使用 nvm 管理本地多个 node 版本。
  • 数据库: MYSQL + Redis
  • 两个域名: 一个用作前端,一个用作后端跳转

前端

Vercel 部署

如果你将其托管在自己的 Vercel 服务器上,可点击 deploy 按钮来开始你的部署!

Deploy to Vercel

环境变量

后端地址
VITE_APP_REQUEST_HOST: https://server.lightai.io

APP 名称&Logo
VITE_APP_TITLE: ChatWeb
VITE_APP_LOGO: https://image.lightai.io/icon/logo.svg

服务器部署

## 拉取项目
git clone https://github.com/vastxie/ChatGpt-Web.git
cd ChatGpt-Web

## 安装依赖(注意先安装好 node 及 yarn)
以及 yarn)
yarn install

## 打包
yarn build

将打包好的 dist 目录上传到服务器,将网站目录指向 dist 文件夹即可

需额外在伪静态中添加

location / {
  try_files $uri $uri/ /index.html;
}

后端

导入 MySQL 数据库文件: sql/chatgpt.sql

server/config/index.js 中修改 后端端口 数据库 邮箱 等配置

##安装 pm2 管理器
sudo npm install pm2 -g

cd server

#### 启动进程
pm2 start index.js --name chatweb --watch

新建一个网站,ssl验证后,反向代理 http://127.0.0.1:3200(可在后端配置中自行修改端口)

更多

关于 node yarn pm2 以及 Vercle 的一些设置可以自行搜索或向GPT 提问

贡献者

感谢项目原作者 79E 以及所有的 项目贡献者

开源协议

License MIT

chatgptweb's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.