Follow these steps to install and set up the Laravel Inertia project on your local machine.
Ensure you have the following installed:
- PHP >= 7.3
- Composer
- Node.js & npm
- Git
- A web server (e.g., Apache, Nginx, or Laravel Valet)
- Clone the Repository
git clone https://github.com/sarfarazstark/chatbot.git
cd chatbot
- Install PHP Dependencies
composer install
- Install Node.js Dependencies
npm install
- Set Up Environment Variables
- Copy the
.env.example
file to.env
- Copy the
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
- Generate Application Key
php artisan key:generate
- Run Migrations
php artisan migrate
- Build Frontend Assets
npm run dev
- Serve the Application
php artisan serve
Your application should now be running at http://localhost:8000
.
- 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.