Giter Club home page Giter Club logo

chatgptclone's Introduction

install

  1. Install the necessary dependencies using this command
pip install -r requirements.txt
  1. Generate a self-signed SSL certificate and key pair
openssl req -x509 -newkey rsa:4096 -nodes -out cert.pem -keyout key.pem -days 365

Configuration

Server

  1. Obtain your openai api key from here
  2. Create a .env file in the root directory of your project.
  3. Inside the .env file, set the OPENAI_API_KEY environment variable to your API key using the KEY=VALUE syntax, like so:
OPENAI_API_KEY=<your_openai_api_key_here>
  1. Set the remaining MySQL environment variables in the .env file as follows:
MYSQL_USER=<your_mysql_username_here>
MYSQL_PASSWORD=<your_mysql_password_here>
MYSQL_HOST=<your_mysql_host_here>
MYSQL_DATABASE=<your_mysql_database_name_here>
  1. For Google authentication, obtain a client_id and client_secret by creating a new project in the Google Developers Console
  2. Set the GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET environment variables in the .env file, replacing the placeholder values with your own:
GOOGLE_CLIENT_ID=<your_google_client_id_here>
GOOGLE_CLIENT_SECRET=<your_google_client_secret_here>
  1. Save the .env file

run

python3 app.py or flask run --cert=adhoc

Tech used

  • openai API
  • Google Cloud Console
  • html
  • css
  • javascript
  • flask
  • mysql

credits

๐Ÿ“ License ยฉ CyberRide

This project is released under the Apache License 2.0 license. See LICENSE for details.

chatgptclone's People

Contributors

cyberride avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.