Skip to content

prom97/laravel-chatgpt

Repository files navigation

Laravel LogoChatGPT Logo

Laravel ChatGPT Clone

Introduction

  • ChatGPT clone. The chatbot is built using the GPT-3.5 language model and is integrated with the Laravel and VueJS frameworks.

Tech Stack

Deployment

  • Clone project
git clone https://github.com/prom97/laravel-chatgpt.git
  • Install dependencies from composer.json and package.json (inside the project directory)
composer install
npm install
npm run dev
  • Create a new database and config your .env file (line 11 for reference)
    • Default Database name: laravel-chatgpt
    • If the .env file does not exist:
cp .env.example .env
OPENAI_API_KEY=<your_api_key>
  • Run migrations to set your db tables structure
php artisan migrate
  • Serve it
php artisan serve

  • Register and acces to the dashboard

  • If you have any 500 Server error, try CTRL+C and then

php artisan cache:clear
composer dump-autoload
php artisan key:generate