chatgpt applet installation guide

chatgpt applet installation guide

JAVA

Create a database with a random name. The database encoding is utf8mb4
and import the sql file under the renren-api/db directory.
Insert image description here

When importing data for the first time, execute the chatgpt.sql file first, and then execute it
in order according to the date. Comrades who have already imported data will import according to the updated date. The
default account password for background management is admin.
Modify the application-dev.yml file and update the MySQL account. And password
and redis link address and password

Backend management UI

Switch to the project root directory and execute the following command to install the plug-in dependency
npm install
Insert image description here
. Check the npm script in VSCODE as shown in the figure. Click
Insert image description here
Run Local to run it.
Mobile terminal
Switch to the project root directory and execute the following command to install the plug-in dependency
npm install .

Modify the three URLs here. The first is the api interface, the second is the websocket address, and the third is the address of the WEB page.
Note that if the api address here only has http, then the websocket can only be ws.
Insert image description here

After the modification is completed, select where you want to run it.

WEB side

Switch to the project root directory and execute the following command to install the plug-in dependency
npm install

To modify the URL, the requirements are the same as those on the mobile terminal.

After the modification is completed, refer to the startup method of the background management UI to start.
Note that if the 404 is refreshed after the web-side deployment is completed, add the following code to the nginx configuration file.

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

Software Architecture

The client uniapp
java background technology uses the renren framework: springboot+mybatis-plus+redis
management side vue +elementUI

Project function introduction

1. Home page

AI chat, streaming output, new chat window, AI drawing, model switching

2. Role model

There are various AI chat models such as investment consultants, accountants, legal consultants, medical consultants, learning consultants, translators, marketing planners, etc.

3. Mine

Q&A records, card secret redemption, my team, sign-in, inviting friends, cash withdrawal, membership activation, purchase Q&A coins, upgrade partners, commission withdrawal, Q&A coin flow, about us, withdrawal records, team member list

H5 interface

image
image

PC interface

image
image
image
image
image
VV:17862700238

Guess you like

Origin blog.csdn.net/jjs15259655776/article/details/131525921