Build a Chat App with NEW ChatGPT API | Full stack, React, Redux Toolkit, Node, OpenAI

Поделиться
HTML-код
  • Опубликовано: 2 июн 2024
  • Build a Chat Application with ChatEngine and OpenAI and ChatGPT integration tutorial. The frontend will consist of ChatEngine for our chat application, Redux Toolkit for our state management, Redux Toolkit Query for making api calls, Hero icons for our Icons and React Router for Navigation. For the backend we will be using Node Js as our runtime, Express Js as our backend framework, and OpenAI for Ai integration with our chat. We will be able to talk through our chat application like with ChatGPT.
    Important*
    When using Chat Engine and creating a new project, if you want your project to be hosted free forever, in the Promo Code type 'edward'. I do receive commission if you upgrade to get more features but it is not necessary to purchase for it to be hosted forever.
    Links:
    node: nodejs.org/en/download/
    npx: www.npmjs.com/package/npx
    vscode: code.visualstudio.com/download
    nodemon: github.com/remy/nodemon
    vite: vitejs.dev/guide/
    react router: reactrouter.com/en/v6.3.0/get...
    react dropzone: github.com/react-dropzone/rea...
    redux toolkit: redux-toolkit.js.org/introduc...
    redux toolkit query: redux-toolkit.js.org/rtk-quer...
    hero icons: heroicons.com/
    dotenv: github.com/motdotla/dotenv
    chatengine docs: chatengine.io/docs/react/v2
    chatengine storybook: chatengine-io.github.io/react...
    chatengine api: rest.chatengine.io/
    chatengine styling: chatengine.io/docs/react/v1/c...
    openai node npm: github.com/openai/openai-node
    openai completion docs: platform.openai.com/docs/api-...
    openai playground: platform.openai.com/playground
    openai api chatgpt update new: openai.com/blog/introducing-c...
    openai api gpt-3.5 docs: platform.openai.com/docs/guid...
    Completed Code:
    github: github.com/ed-roh/chat-app
    css: github.com/ed-roh/chat-app/bl...
    code for openai-updated: github.com/ed-roh/chat-app/bl...
    Chapters:
    0:00 Building a Fullstack Chat Application with ChatGPT
    3:44 Frontend Installations and Packages
    13:06 Main Chat Application and React Chat Engine Setup
    35:33 Chat Custom Header
    43:35 Chat Custom Message Form
    1:06:47 What is OpenAI and how is it related to ChatGPT
    1:09:50 Backend Installations and Packages
    1:21:10 AI Chat
    2:01:30 AI Code
    2:11:25 AI Assist
    2:28:27 Authentication and Authorization
    2:54:15 Complete Build Fullstack Chat Applaction
    -----------
    Subscribe to my channel: / @edrohdev for more web development and web 3.0 blockchain tutorials!
    My NEW Discord: / discord
    -----------
    Who is EdRoh? I'm a lead engineer for a publicly traded company and have been developing for a decade now.
  • НаукаНаука

Комментарии • 233

  • @EdRohDev
    @EdRohDev  Год назад +66

    Hey all, I’m back and recovered! So glad to be posting new content again.
    Questions and Discussions about this project can be asked here in discord: discord.gg/2FfPeEk2mX

    • @tacanda6479
      @tacanda6479 Год назад

      Can you make some Vuejs tutorials?

    • @olawaleolafisoye4148
      @olawaleolafisoye4148 Год назад

      I’m glad to see that you are back. I have missed your content so much and I am still hoping for the day you will respond to my email. Thanks

    • @deathknight9813
      @deathknight9813 Год назад +1

      Hey Edroh, Can you make a roles+permissions react app? I believe it could be an amazing one!!! tyvm for your amazing job man!!!

    • @businessuser5146
      @businessuser5146 Год назад

      Thanks for the awesome application, next can you build clubhouse clone or tinder clone (web application) using NEXTjs
      Its good to see you back, full of health and hope u feeling great...

    • @archamedis
      @archamedis Год назад

      ayy glad you're feeling better!

  • @tinkerman1790
    @tinkerman1790 Год назад +4

    Glad to hear you are recovered and Thanks for your great tutorial video as always! Stay healthy!

  • @CoFloCipher
    @CoFloCipher Год назад +3

    This was a fantastic tutorial. Extremely well done @EdRoh! Ive been in this field for a lot of years and its so refreshing to watch a video like this from someone with actual experience in the "real world" who gives real advice. Keep up the awesome work!

  • @bryanwhitecreativesolution7332
    @bryanwhitecreativesolution7332 Год назад +3

    This is the first of your tutorials I'm watching, and it certainly won't be the last. What I really enjoy about these is that I have to stop the video to keep up. Why do I say that? Because SO MANY presenters overexplain, and I find myself waiting, and waiting, and waiting, and waiting, and waiting - and I can't stand waiting for the instructor to pontificate the same way I do about everything else. While I haven't had to do that once with you teaching, at the same time you give good, concise explanations as to why you're doing what you're doing. Enough for the new guy, without bogging down someone with a bit more experience. It's a perfect blend. I'm watching this video for a very specific project, but I can't wait to see what else you teach.

  • @emmanuel19602
    @emmanuel19602 11 месяцев назад

    This is the most captivating video I have seen on RUclips! Thanks, EdRoh!

  • @Kevin-cg7qk
    @Kevin-cg7qk Год назад

    I was starting to get worried there for a sec, glad you're back!

  • @pitbul67204
    @pitbul67204 Год назад

    We are so glad to see you back this is what we have been waiting for

  • @kevinzebb
    @kevinzebb Год назад

    thanks, ed. Never change man, you're doing helping us noobs so much tbh

  • @srandlee4014
    @srandlee4014 Год назад

    glad you back, take care and thanks for all your video🥰

  • @yyxx9309
    @yyxx9309 Год назад

    Wooohooo you are back!! The dashboard is huge tho I'm still on it!! Can't wait to dive into this one after dashboard!

  • @eugenem529
    @eugenem529 Год назад +14

    Man, you are the GOAT. You create all this content by yourself and share with us for free. WOW. You are very much underappreciated. Wish you more subs and get better soon!

  • @Kxneki2433
    @Kxneki2433 Год назад +1

    Saved this tutorial! definitely gonna work on this, thanks

  • @najumrahim746
    @najumrahim746 Год назад +2

    Nice to see you are back

  • @herbylegall9
    @herbylegall9 Год назад

    Thank you for this tutorial ! Gonna learn alot from this!

  • @harunjeylan9362
    @harunjeylan9362 Год назад

    Well come back. I'm so happy to see you again.

  • @smiley3239
    @smiley3239 3 дня назад

    i jope you're doing well, thank you so much for this!!!! please keep posting videos like this

  • @yantech.4249
    @yantech.4249 Год назад

    WOW! Amazing tutorial on Chat GPT

  • @EZHaiYaar
    @EZHaiYaar Год назад

    How can someone create such a masterpiece for free. Hats off to you. love you, big brother🙏

  • @0Amshalem
    @0Amshalem Год назад +6

    Glad you're back! Love your content, can you make a complete guide on CRM all other guides on the net are always partial

    • @EdRohDev
      @EdRohDev  Год назад +2

      I may consider it. Are you talking about using an already existing CRM like Salesforce or creating one from scratch?

    • @davronmaxmudov3972
      @davronmaxmudov3972 Год назад +1

      ​@@EdRohDev it would be awesome 🔥

    • @0Amshalem
      @0Amshalem Год назад

      @@EdRohDev Creating one from scretch :) customer, customer profile, orders, settings, notification etc.

  • @eshw23
    @eshw23 Год назад

    So happy your back!

  • @elbezz
    @elbezz Год назад

    awsome tutorial, thanks for sharing!!

  • @prashlovessamosa
    @prashlovessamosa Год назад +2

    Long time no see glad you are back brother.

    • @EdRohDev
      @EdRohDev  Год назад

      thank you. glad to be back

  • @fedecha
    @fedecha Год назад +1

    thanks a ton Ed!

  • @mj2758
    @mj2758 Год назад

    Great content as usual.

  • @user-kc9uq9ue1i
    @user-kc9uq9ue1i Год назад +2

    good content as usual

  • @Ikigai_adventures
    @Ikigai_adventures Год назад +1

    Get well soon, i hope you get better soon.🤗🙂

  • @nshnikita
    @nshnikita Год назад

    Great video, although from the title I was expecting you married Chat GPT and let it build your backend :D This could be awesome.

  • @AnastasiaAssi
    @AnastasiaAssi Год назад

    Great tutorial 💅🏼🔥

  • @zykl78
    @zykl78 Год назад +2

    Thanks Ed, i hope you could also teach us a best practice on building a Knowledgedbase app with admin dashboard 🙂

  • @miniq2023
    @miniq2023 Год назад

    nice to c you again...bro.best wishes...

  • @stanb92
    @stanb92 Год назад

    Welcome back, get well soon 😊

  • @niteshprajapat7918
    @niteshprajapat7918 Год назад +1

    You are awesome ❤️🔥

  • @PizzaLord
    @PizzaLord Год назад

    Great work Ed and glad you are better. Have not gone through the whole video but I notice in the github there is no install instructions like what API keys do you need and where you should put them to get this up and running quickly. Do you need any other keys except open ai key like a chat app engine acc and key? If so where do they go?

  • @asoalan5400
    @asoalan5400 Год назад

    Thanks for sharing!

  • @rodneythecreative6020
    @rodneythecreative6020 Год назад

    Love your content

  • @dfordemo981
    @dfordemo981 Год назад

    Making developers happy 😋

  • @asadmehboob1300
    @asadmehboob1300 Год назад +3

    Nice to see you back, May God give you long healthy life..your videos are great , please make project on Nextjs with Nestjs and graphql, prisma and postgres ,

  • @jonathandejesus9494
    @jonathandejesus9494 Год назад

    DUDEEEEE, learned SO F MUCH

  • @thomasawounfouet7395
    @thomasawounfouet7395 Год назад

    Thanks for sharing 🤩🙏🏽

  • @rohitsingh-xj1ey
    @rohitsingh-xj1ey Год назад +1

    Thanks a lot brother

  • @Alex-pu5dx
    @Alex-pu5dx Год назад

    you should make videos about making websites and apps for influencers because they are starting to realize they can make their own websites and apps instead of relying on 3rd party apps for anything! once they all start thinking like this that is gonna create a huge boom in the web development market I think :).

  • @uzgurCoder
    @uzgurCoder Год назад

    thanx my man, it's cool, but now I am learnig Javascript from scratch I am gonna watch it when I learned redux and react ts

  • @waelhasnaoui5507
    @waelhasnaoui5507 Год назад +1

    thank you man

  • @sug_madic7683
    @sug_madic7683 Год назад

    welcome back Ed

  • @sung5355
    @sung5355 Год назад +1

    Good I will practice it

  • @virajrana1907
    @virajrana1907 Год назад

    Hey EdRoh , Great work Bro ! Thank you for this great content. Hope you are doing well now.
    Next time can you please make content on React Native application and it's best practices. Thanks in advanced

  • @sneakernetwork9201
    @sneakernetwork9201 Год назад +1

    great VIDEO

  • @narinderkmaurya
    @narinderkmaurya Год назад +3

    A tutorial for mern stack blog app with comment and like functionality will be very helpful 🤞

  • @guilhermemartins7298
    @guilhermemartins7298 Год назад +3

    Great video! I'm following the tutorial, but I keep having this warning on the console, and it keeps piling up: "WebSocket connection to '' failed: WebSocket is closed before the connection is established."

  • @Nikitosss91
    @Nikitosss91 Год назад

    Absolutely Beast

  • @wisdomelue
    @wisdomelue Год назад

    stay healthy bro and thank for your dedication to putting out content

  • @gbtech8602
    @gbtech8602 Год назад

    Wel come back

  • @vtzhao7427
    @vtzhao7427 Год назад

    long time no see ser!

  • @hamzabadii3575
    @hamzabadii3575 Год назад +1

    Nice 💓

  • @sneakernetwork9201
    @sneakernetwork9201 Год назад

    glad you are okay!

  • @frankchen3021
    @frankchen3021 Год назад

    thank you a lot for this video. but do you know how to stream the response from the api? So the message keeps popping up like the chatGPT instead of showing up all at once

  • @ashwin134
    @ashwin134 Год назад

    Your the best

  • @tafaxtra
    @tafaxtra Год назад +8

    Thank you so much. As a beginner, I followed your tutorial to the core but I am having problems deploying it. On dev, everything works fine at the end. When I did yarn build and yarn preview, nothing loads on the page. When I checked the console, I get the error: require is not defined. When I tried debugging, I found out the error was coming from require("websocket"). I have searched the web tirelessly for solution to this problem, but I couldn't seem to get around it. It appears this is a dependency of the react-chat-engine-advanced. Please, how can I resolve this? Thanks.

    • @luke43591
      @luke43591 9 месяцев назад +1

      I have the same issue plz help us!

  • @dekaynine6347
    @dekaynine6347 Год назад

    Thanks for the new video! I was wondering if you can do a project on NextJs with maybe the SWR library.

    • @EdRohDev
      @EdRohDev  Год назад +2

      a Next js project is on the way for sure! Just need to make the final touches.

  • @Yahya_Umar
    @Yahya_Umar Год назад +1

    "I'm thrilled to see you again!"
    i hope next time you create a real time chat app just like WhatsApp.

  • @botagozakhmetova8185
    @botagozakhmetova8185 Год назад

    is this tutorial beginner-friendly? (like almost total beginner) or it's for intermediate level specialists?

  • @AMAN-un7ji
    @AMAN-un7ji Год назад +1

    Wouldn't be great if you create some projects in angular. thanks

  • @edgy9263
    @edgy9263 Год назад

    love the vido misse you

  •  Год назад +1

    thanks, :D

  • @shineLouisShine
    @shineLouisShine Год назад

    That's a very common mistake, but it's (not intuitively),
    Should be spelled as "vEEt", and not "vAit".
    Thanks for the video, and stay healthy!

  • @ahmadsofwan4069
    @ahmadsofwan4069 Год назад +2

    Great content! Normally this kind of project what's your deployment platform you'll be using?

    • @franklinmayoyo
      @franklinmayoyo Год назад

      I haven't watched the video yet. But generally you deploy to heroku, firebase, digital ocean, or to cloud hosting providers like google cloud, AWS.
      Or you can split your web app as well and host the frontend to a different provider and the backend to a different provider.
      Which is often the best approach for security and if one is down you can quickly create a temporary alternative as you handle the problem.
      For example you deploy your frontend to Vercel or netlify and setup your domain then you host your backend to let's say AWS. In your app you configure the API endpoints of your backend to accept requests from the frontend domain. In the front end you configure your post requests to the backend url.
      For both approaches you will need to add some package to your backend like PM2 or Forever and many others. You just need one. Because once you deploy the backend there is no terminal to run the backend command let's say 'node app.js' you'll need to use a package like PM2 in your code to make sure your backend server is live.
      Also note that most hosting platforms can host both backend and frontend.
      You can even use platforms like Hostinger or siteground among others to host your frontend using their shared plan or buy a plan that offers more features depending on the platform.
      Also remember you won't just deploy your files the way they are during development. You need to bundle them to a deployable file. Like for the frontend you'll run 'npm build' that's if you used ' create-react-app' or 'npm run build ' if you used 'create vite' ( this is Incase you didn't change the commands in your package.json). Then you can bundle the backend with webpack.
      This was a generalized response make sure to check the docs of your hosting provider for guidelines.
      It seems complicated but it is easy.

    • @theadarshprasad
      @theadarshprasad Год назад

      probably DigitalOcean, Linode or AWS

    • @RahulKumar-xl3dd
      @RahulKumar-xl3dd Год назад

      @@theadarshprasad did you deploy the project ??

    • @theadarshprasad
      @theadarshprasad Год назад

      @@RahulKumar-xl3dd i didn't started it as currently i'm working on some other project

  • @alekkiwachira443
    @alekkiwachira443 Год назад

    welcome back

  • @studiomonty
    @studiomonty Год назад

    Does this code allow "remembering", inside the same chat window? Can you converse with the API and it remembers what has been said?

  • @rootMedia21
    @rootMedia21 Год назад

    Does this app use a database for storing chat info? how to share chat info with others?

  • @aratrik247
    @aratrik247 Год назад

    Get well soon man

  • @chairilashar7022
    @chairilashar7022 Год назад

    Hello sir, I requested a laundry management system project using MERN, I really support your channel sir

  • @drgeneral6610
    @drgeneral6610 Год назад

    Hi, is it possible to add voice note, video call and voice call also a feed for post like on facebook. I'm working on my final 3rd year project as IT Student Software Developer. Thanks in advance

  • @tanmaywaddelwar1907
    @tanmaywaddelwar1907 Год назад

    facing issue regarding export and import of custom header file so i can't see chat page on running the project at 40:16

  • @Gulam-E-Mastan
    @Gulam-E-Mastan 9 месяцев назад +1

    OnSubmit function is not defined.. can you please help?

  • @shreyank1558
    @shreyank1558 Год назад

    Awesome!👍👍

  • @medusa121
    @medusa121 Год назад +1

    Awesome work! I deployed the client to Vercel and also tried in Netlify but got an Uncaught ReferenceError: require is not defined even though we haven't used require on the client side. Any chance you know what may have caused this?

    • @RahulKumar-xl3dd
      @RahulKumar-xl3dd Год назад

      I think you should use render to deploy the back end part and Vercel/Netlify to deploy the front end part. It should work I guess.

    • @nattapongCcwr
      @nattapongCcwr Год назад

      Have you solved this problem now?

    • @medusa121
      @medusa121 Год назад +1

      @@nattapongCcwr i was anle to deploy it in vercel by transferring the code to create react app instead.

    • @medusa121
      @medusa121 Год назад

      @@nattapongCcwr wow! This will come in handy. Thanks mate

  • @dj1984x
    @dj1984x 10 месяцев назад +1

    i don't understand how this is helpful to people learning, it's a bunch of copy/paste.
    it's a cool project and looks great, I just don't think I'm actually learning much from this

  • @DoorDashPro
    @DoorDashPro Год назад

    I created a chat app with the old free chat GPT. I'm definitely the goat because I created all of it by myself without the need of any fancy GPT upgrade

  • @shashwatsharma5415
    @shashwatsharma5415 Год назад

    Can i make it as a basic full stack developer?? 🤔

  • @eshitajain6406
    @eshitajain6406 Год назад

    Hey, it’s amazing but login and signup is not working what to do ?

  • @helloWorldPlus
    @helloWorldPlus Год назад

    Hello there! Do you know if Chatgpt can be trained with business data in order to answer questions related to the business scope only?

    • @EdRohDev
      @EdRohDev  Год назад

      it can be a pain to set up. May need an expert on that one, as I've been attempting to fine tune ChatGPT but it does require some time. you'd need to do embeddings within openai apis. There were some AI tools out there that do what you are looking for, but i forgot the name and also haven't tested it myself

    • @reed3249
      @reed3249 Год назад +1

      Fine-tuning isn't available yet but you probably will be that's some point. The best you can do for now is paying more attention to prompt engineering. You kind of have to experiment and see what works best.

  • @ishagupta1655
    @ishagupta1655 Год назад

    Can this chat application be MERN stack with integration of OPEN AI ?????

  • @anghelgabriel
    @anghelgabriel 6 месяцев назад

    Which icona theme do you use?

  • @yash_verma
    @yash_verma Год назад

    great

  • @hosnavlogs
    @hosnavlogs Год назад +17

    Would’ve been nice to include how to deploy the application

    • @Yag116
      @Yag116 Год назад +3

      he showed that in this video:
      Build a MERN React Admin Dashboard | Redux Toolkit Query, Backend Focus, Deployment, Data Modeling

    • @J3R3MI6
      @J3R3MI6 Год назад

      @@Yag116 once it’s deployed does that mean you essential have a working live product (assuming you use stripe for payments) that can hold new users and scale?

    • @twynecreativemedia
      @twynecreativemedia Год назад

      @@J3R3MI6”product” would be the wrong word since it wouldn’t be an original idea, I think it’d work better as an auxiliary project on your portfolio

  • @4mylife4mylove
    @4mylife4mylove Год назад

    Thanks for great tutorial! btw, I used your promo code but I got email it's expired and need to upgrade :D

  • @rorymcdonnell7491
    @rorymcdonnell7491 Год назад +2

    Followed everything exactly as you have done and when I send a message to the Ai chatbot user there is a 500 internal server error. Further digging int he terminal of the server directory shows that there is a status: 429 error which means too many requests. There's no obvious fix for this.

    • @rorymcdonnell7491
      @rorymcdonnell7491 Год назад +1

      To "fix" this issue I added a debit card to my openai account, then setup a new api key, this worked for some reason. Hope it helps anyone else if this happens to them.

    • @vishwadoshi7134
      @vishwadoshi7134 Год назад

      @@rorymcdonnell7491 did you also make any payment?

    • @rorymcdonnell7491
      @rorymcdonnell7491 Год назад

      @@vishwadoshi7134 it made a small payment, but you receive it back within one week

  • @sueraisianzadeh797
    @sueraisianzadeh797 Год назад

    please give me your github link to grab css file, as you mentioned in the video. thanks

  • @ajaybabupatel1665
    @ajaybabupatel1665 10 месяцев назад

    In this can two users also talk to each other oe only with gpt

  • @dragonemperor8406
    @dragonemperor8406 Год назад

    Can anyone guide me how to deploy it on netlify or vercel or render, and what changed in the code we need to do to do so

  • @goldenmonkey9085
    @goldenmonkey9085 Год назад

    could you do the Dashboard application l but use TDD to develop React + TypeScript application ? I can't find any contents on RUclips. is TDD no value for senior developer?

    • @EdRohDev
      @EdRohDev  Год назад +2

      TDD can be a pain and not always a viable option. It requires a functioning product team that can deliver proper business reqs...which you'd be surprised not many companies have. Not to mention TDD is a big disadvantage when it comes to companies that have individuals who love to change business requirements all the time. Also in videos like mine, it'd be a struggle for me to include because what I already do in the videos is quite time consuming

    • @goldenmonkey9085
      @goldenmonkey9085 Год назад

      @@EdRohDev ok, let's forget TDD, how about this things, Google has been released their USM model last week. could you add one more thing on this application but we can use USM to told with ChatGPT? I think that's awesome. Then we can think more, add one more AI vice generator to let the user can choose the voice of the famous people.

  • @MujibmmThe
    @MujibmmThe 8 месяцев назад

    Has anyone hosted a clone of this and can you link it please
    Also thank you ed great tutorial as always

  • @tanishqa-sv
    @tanishqa-sv Год назад

    Can I follow this for windows10 ?

  • @user-sr4sl1lz3h
    @user-sr4sl1lz3h Год назад +1

    Thank you for your sharing, but I always encounter 403 error. I am very sure that my OPENAI API KEY, Project ID and Private Key are all correct. How can I solve the problem?

    • @3jay568
      @3jay568 11 месяцев назад

      anyone get any resolution for this?

    • @itsdannywarner
      @itsdannywarner 10 месяцев назад

      hey did you find a solution for this? I am facing 404 errors and I think it is something similar. I also was a heavy copy and paster from github

  • @adoulff146
    @adoulff146 11 месяцев назад

    is the mongoDB inside this project ?

  • @mpumuropatrick4288
    @mpumuropatrick4288 Год назад

    This is great learning materials but i went through the video but i have error of 404 failed to load

  • @jamjam3337
    @jamjam3337 Год назад +1

    👏👍

  • @rohit3048
    @rohit3048 Месяц назад

    when passing {chat} in CustomerHeader 39:11 it's not passing as a Prop...can anyone knows why?

  • @usmanmarkaz
    @usmanmarkaz Год назад

    Bro Plz Make Another Ecommerce Project with Firebase and stripe Payment gateway and make it fully functional plz sir

  • @itsdannywarner
    @itsdannywarner 10 месяцев назад

    has anyone had any 404 issues with this? I think I have all the code in place perfectly from the repo but im stuck on a 404 error...