- Install the necessary dependencies using this command
pip install -r requirements.txt
- Generate a self-signed SSL certificate and key pair
openssl req -x509 -newkey rsa:4096 -nodes -out cert.pem -keyout key.pem -days 365
- Obtain your openai api key from here
- Create a .env file in the root directory of your project.
- 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>
- 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>
- For Google authentication, obtain a client_id and client_secret by creating a new project in the Google Developers Console
- 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>
- Save the .env file
python3 app.py or flask run --cert=adhoc
Tech used
- openai API
- Google Cloud Console
- html
- css
- javascript
- flask
- mysql
📝 License © CyberRide
This project is released under the Apache License 2.0 license. See LICENSE for details.