Skip to content

This is a gemini-api powered chatbot application built with Laravel, Inertia and React.

Notifications You must be signed in to change notification settings

sarfarazstark/chatbot

Repository files navigation

This is a gemini-api powered chatbot application built with Laravel, Inertia and React

Follow these steps to install and set up the Laravel Inertia project on your local machine.

Project Stack

  • Laravel Laravel
  • Inertia.js Inertia.js
  • React React
  • Tailwind CSS Tailwind CSS
  • Sqlite Sqlite
  • Gemini API Gemini API
  • Showdown (for markdown) Showdown

Prerequisites

Ensure you have the following installed:

  • PHP >= 7.3
  • Composer
  • Node.js & npm
  • Git
  • A web server (e.g., Apache, Nginx, or Laravel Valet)

Steps

  1. Clone the Repository
git clone https://github.com/sarfarazstark/chatbot.git
cd chatbot
  1. Install PHP Dependencies
composer install
  1. Install Node.js Dependencies
npm install
  1. Set Up Environment Variables
    • Copy the .env.example file to .env
cp .env.example .env
  • Update the .env file with your database and other configurations.
  • Add the following line to the .env file to use the Inertia stack:
APP_NAME=Chatbot
APP_URL=http://chatbot.local # Update with your local URL or IP
GEMINI_API_KEY=your_api_key
  1. Generate Application Key
php artisan key:generate
  1. Run Migrations
php artisan migrate
  1. Build Frontend Assets
npm run dev
  1. Serve the Application
php artisan serve

Your application should now be running at http://localhost:8000.

Troubleshooting

  • Ensure your .env file is correctly configured.
  • Check if all services (database, web server) are running.
  • Review the Laravel and Inertia documentation for additional help.

About

This is a gemini-api powered chatbot application built with Laravel, Inertia and React.

Topics

Resources

Stars

Watchers

Forks

Languages