Skip to content

Chat AI Flask + React + Mysql: Flask REST API with Google login/registration, user-created chats stored in MySQL database. No AI implemented, but chat operations are implemented, allowing users to create/delete chats.

Notifications You must be signed in to change notification settings

diegoperea20/Chat-AI-like-ChatGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chat AI Flask + React + Mysql

Chat AI Flask + React + Mysql , with Flask REST API with sqlalchemy mysql where there is a login and registration and also you can login and register with google where each user can create chats to interact with artificial intelligence, in this case artificial intelligence is not implemented, but all the operation that I think is done at the time of implementing chats with AI is implemented, this saving the chats in databases where each user can delete and create chats at any time.

video how use : url video

StepLast


First create an account where you must create a username, password ("Must include at least one number.", "Must include at least one lowercase letter,"Must include at least one lowercase letter.", "Must include at least one uppercase letter.", "Must include at least one uppercase letter.","Must include at least one uppercase letter.", "Must include at least one uppercase letter.", "Must include at least one uppercase letter.","Must include at least one special character.", "Must include at least one special character.", "Must include at least one special character.","The length of the password must be equal to or greater than 8 characters.","Must not contain blank spaces.") Confirm your password and enter an email address ;You can also register with google .

Step1

In login enter your username and password, click on the "Login" button.You can also login with google (but you must register with google first).

Step2

After logging in you will see the home screen where you will see your user name and registration id, in this section you can log out, change your password, delete your account (delete your account and chats), and Chats.

Step3

In change password you can change your password and email if required.

Step4

Step4

When you click on the "Chats" button (a table is created with the user), it shows an interface where you can create chats and where you can ask the artificial intelligence.

Step5

Step6

When you enter a name to create the chat and click on the "Create chat" button (you create a table with the user and the name of the chat) the chat is created with the name provided.

Step7

Step8

Step9

Step10

Once you have created your chat, you can enter in your input, your request to the IA (always remember to select the chat where you want to send the input).

Step11

In this case the AI response is random characters, but can be replaced using the chatgpt API or your own AI.You can also delete the chat if you wish.

Step12


Using google API

Using google API modify this with your "clientId", your "clientId" is in https://console.cloud.google.com/ if you don't know how to use it here is an example

Modify : "CLIENT_ID_APPIGOOLE" in Login.jsx and Loginup.jsx

Stepgoogle

Stepgoogle2

In this case with flask and React in https://console.cloud.google.com/ put this way.

Stepgoogle3

About

Chat AI Flask + React + Mysql: Flask REST API with Google login/registration, user-created chats stored in MySQL database. No AI implemented, but chat operations are implemented, allowing users to create/delete chats.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published