Skip to content

KevinRoozrokh/chatgpt-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT clone with DALL.E image generation model


How to:

To code the web app using the codebase at https://github.com/KevinRoozrokh/chatgpt-react, you can follow the following step-by-step guide:

  1. Set up the development environment:

    • Ensure you have a text editor or integrated development environment (IDE) to write your code.
    • Install Node.js and npm (Node Package Manager) if you haven't already.
  2. Clone the codebase:

    • Open a terminal or command prompt.
    • Navigate to the desired directory where you want to clone the project.
    • Run the following command to clone the repository:
      git clone https://github.com/KevinRoozrokh/chatgpt-react.git
      
  3. Install dependencies:

    • Navigate into the project directory:
      cd chatgpt-react
      
    • Run the following command to install the project dependencies:
      npm install
      
  4. Set up OpenAI API access:

    • Create an account on the OpenAI platform and obtain an API key.
    • Create a .env file in the root of the project directory.
    • Add the following line to the .env file, replacing <YOUR_API_KEY> with your actual API key:
      REACT_APP_OPENAI_API_KEY=<YOUR_API_KEY>
      
  5. Customize the app:

    • Open the project in your code editor.
    • Explore the codebase to understand the structure and components.
    • Customize the app by modifying the existing components or creating new ones.
    • Update the styling and layout as desired using CSS or a CSS-in-JS library like styled-components.
  6. Test the app:

    • Run the following command to start the development server and launch the app in your browser:
      npm start
      
    • This will open the app in your default browser at http://localhost:3000.
    • Interact with the app in the browser to test its functionality and ensure it is working as expected.
  7. Deploy the app:

    • Once you are satisfied with your modifications, you can deploy the app to a hosting platform.
    • Follow the deployment instructions provided by the hosting platform of your choice.
    • This may involve building the app using npm run build and uploading the resulting files to the hosting server.
  8. Continuously maintain and update the app:

    • Monitor the app for any reported issues or bugs.
    • Address and fix any identified problems promptly.
    • Implement new features or improvements based on user feedback or your own objectives.

Please note that the specific implementation details and functionality of the web app in the provided codebase may not be fully covered in this general guide. It is recommended to review the actual codebase or any accompanying documentation to get a more accurate understanding of its implementation.


If you find this project helpful, you can buy me a coffee here

Buy Me A Coffee



**_Tech used_**

- openai API
- react
- tailwindcss
- react-icons
- react-markdown

## 📝 License

> This project is released under the Apache License 2.0 license. See [LICENSE](./LICENSE) for details.