Build and Deploy own ChatGPT Ai App in JavaScript Open Ai

 Build and Deploy own ChatGPT Ai App in JavaScript Open Ai

 First step to setup the projects.

  1. Create a folder and open it with VS code. (Make sure NodeJs installed)
  2. Now type on vs code terminal "npm create vite@latest client --template vanilla"
    (This will create a vanilla JavaScript repository)
    it will show Yes and No options press Y and enter.
    now select Vanilla with arrow down key and enter.
    again select JavaScript with arrow down key and enter. (Now you are done.)
    we can see new client directory generated for us.

  3. Now on vs code terminal type cd .\client\ (go to client directory).
  4. Now type npm install. (it will install all the necessary packages).
  5. Now copy and paste assets folder into client.
    assets link here

  6. Now copy css file and paste it into style.css
    style.css link here.

  7. Now move favicon.ico file to public directory.
    and delete vite.svg file from public directory.

  8. Now we delete counter.js file because we don't need it.
  9. Now move to the index.html file, this is the starting point of our application.
  10. In index.js file change vite.svg to favicon.ico and then change the title name.
  11. Add below line after title. here we adding style.css file

    <link rel="stylesheet" href="style.css">

















إرسال تعليق (0)
أحدث أقدم