Giter Site home page Giter Site logo

chatgpt-web-go's Introduction

icon

ChatGPT Web Go

A commercially-viable ChatGpt web application built with Go.

可部署商业化的 ChatGpt 网页应用。

💡 本项目是后端服务,前端对应的项目是:79E/ChatGPT-Web

提交问题 Issues

交流群

chatgpt-web-go

主要功能

包括但不限于:

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

TODO:

  • API Key 功能实现
  • API Proxy 代理
  • 绘画功能
  • 思维导图功能
  • 支付功能完善
  • server端渲染模式支持
  • Docker 支持

本地启动

0.环境要求准备

  • golang1.18
  • mysql 5.7+
  • redis
  • goland

1.先 Fork 本项目,然后克隆到本地。

建议目录 ~/go/src/github.com/heimeropen/
git clone https://github.com/heimeropen/chatgpt-web-go.git

2.导入sql

# sql文件
./model/sql/chatgpt.sql

3.配置文件 在 ./config 目录下新建文件 dev.yml 内容如下: (配置内容需要更具自己环境更改)

port: 8899

db:
  type: mysql
  host: 127.0.0.1:3306
  user: root
  password: 123456
  name: chatgpt_web_go

redis:
  addr: 127.0.0.1:6379

gpt:
  proxy: # 代理支持 socks5h://x.x.x.x 或者 http://x.x.x.x

emailServer:
  host: 
  port: 
  senderName: 
  user: 
  password: 

4.运行

用goland打开项目
启动main函数:
./cmd/server/main.go

前端服务

前端服务安装参考:
https://github.com/79E/ChatGpt-Web/blob/master/README.md

前端项目需要修改配置文件 .env.development, 指向本地服务端:
VITE_APP_REQUEST_HOST=http://127.0.0.1:8899

页面截图

cover cover cover cover

📋 开源协议

License MIT

chatgpt-web-go's People

Contributors

heimeropen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

chatgpt-web-go's Issues

不错的

项目针不辍,比原作者好多了,还开源

宝塔搭建

小白不太懂,希望能给个宝塔搭建的教程,谢谢大佬.

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.