Build your own GPT website in 2 minutes

If you feel that the official free gpt (3.5) experience is poor, always disconnected, or not fanqiang, then you can build one yourself. But the premise is that you have to have gpt apikey. Those who registered at the beginning of the year still have a quota of 18 US dollars, and those who register after 4.1 will have no quota. However, you can also recharge yourself.

With the apikey, it is possible for us to complete the application of the upper layer.

Come on, let's build our own gpt website in 1 minute, and automatically support https, and we don't need to apply for certificates by ourselves.

Probably less than a minute. . . .
If you don’t know how to deploy, you can add me (wx: Y85136926)
. There is a prerequisite, you must have your own domain name.

Build steps
AI drawing professional design

Do not use the program as any content that violates laws and disciplines, and do not make your loved ones cry

Interface partial diagram deconstruction:

Foreground show:
insert image description here

insert image description here
insert image description here
Background Show:
insert image description here
Front-end deployment:

Install pm2-manager

Click Settings
to select v16.19.1 version-switch version

Create a new website

Click Settings
to add reverse proxy-fill in the proxy name-target url(http://127.0.0.1:3000)-submit

Enter the website directory
and unzip the client.zip compressed package

Enter the env file to open the .env file
and modify VITE_SERVER_NAME to your own backend domain name

Then return to the parent directory
and open the terminal

Execute npm install -g pnpm

run pnpm install

After running pnpm run build

Run pm2 start ecosystem.config.js

If an error is reported when running pm2 start ecosystem.config.js, run pm2 update first

The construction is over ps: Don’t forget to upload the database yourself
How to put the chatGPT source code on the website.
Just download the compressed package, if you can’t open it, please ask me to send it to you (wx: Y85136926).

AI question answering drawing backend deployment
operating environment (pagoda must see!)

Nginx

php8.1

redis

PM2 Management Tool

MySQL5.7 or higher

Background address: backend domain name/admins

Account admin Password admin

Backend deployment:

Deploy the backend first
Create a website - create a database

decompress

Click Settings
to run directory selection

Configure pseudo-static
select laravel5-save

     进入目录

Open the .env file
to modify the database configuration

Install PHP extensions -redis and fileinfo

at last:

Added in the configuration file of php8.1

extension = /www/wwwroot/backend address directory/public/swoole_loader81.so

Fill in the backend address in the circle part

restart php

Fill in authorization related content in .env

safe_user_id=111
safe_code = 111

Guess you like

Origin blog.csdn.net/weixin_47059371/article/details/132403740