Build Laravel 13 ticket assistant with Docker, Livewire admin, and helpdesk scraper command
This commit is contained in:
111
README.md
111
README.md
@@ -1,58 +1,85 @@
|
||||
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>
|
||||
# TicketAssistant (Laravel 13 + pgvector + external Ollama)
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
|
||||
</p>
|
||||
AI-powered customer support ticket system using semantic retrieval + LLM re-ranking.
|
||||
|
||||
## About Laravel
|
||||
## Requirements
|
||||
|
||||
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
|
||||
- Docker Desktop
|
||||
- Docker Compose v2
|
||||
- Ollama running on a reachable network server
|
||||
|
||||
- [Simple, fast routing engine](https://laravel.com/docs/routing).
|
||||
- [Powerful dependency injection container](https://laravel.com/docs/container).
|
||||
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
|
||||
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
|
||||
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
|
||||
- [Robust background job processing](https://laravel.com/docs/queues).
|
||||
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
|
||||
|
||||
Laravel is accessible, powerful, and provides tools required for large, robust applications.
|
||||
|
||||
## Learning Laravel
|
||||
|
||||
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
|
||||
|
||||
In addition, [Laracasts](https://laracasts.com) contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
|
||||
|
||||
You can also watch bite-sized lessons with real-world projects on [Laravel Learn](https://laravel.com/learn), where you will be guided through building a Laravel application from scratch while learning PHP fundamentals.
|
||||
|
||||
## Agentic Development
|
||||
|
||||
Laravel's predictable structure and conventions make it ideal for AI coding agents like Claude Code, Cursor, and GitHub Copilot. Install [Laravel Boost](https://laravel.com/docs/ai) to supercharge your AI workflow:
|
||||
## Quick Start (Docker)
|
||||
|
||||
1. Create environment file
|
||||
```bash
|
||||
composer require laravel/boost --dev
|
||||
|
||||
php artisan boost:install
|
||||
cp .env.docker.example .env
|
||||
```
|
||||
|
||||
Boost provides your agent 15+ tools and skills that help agents build Laravel applications while following best practices.
|
||||
2. Set the external Ollama URL in `.env`
|
||||
```env
|
||||
OLLAMA_BASE_URL=http://<OLLAMA_SERVER_IP_OR_HOSTNAME>:11434
|
||||
```
|
||||
|
||||
## Contributing
|
||||
3. Build and start containers
|
||||
```bash
|
||||
docker compose up -d --build
|
||||
```
|
||||
|
||||
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
|
||||
4. Install PHP dependencies in app container
|
||||
```bash
|
||||
docker compose exec app composer install
|
||||
```
|
||||
|
||||
## Code of Conduct
|
||||
5. Generate app key and run database setup
|
||||
```bash
|
||||
docker compose exec app php artisan key:generate
|
||||
docker compose exec app php artisan migrate --seed
|
||||
```
|
||||
|
||||
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
|
||||
API base URL: `http://localhost:8090/api`
|
||||
Admin dashboard: `http://localhost:8090/admin/dashboard`
|
||||
|
||||
## Security Vulnerabilities
|
||||
## Admin Dashboard (Blade + Livewire)
|
||||
|
||||
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
|
||||
- `/admin/dashboard`: KPI cards + recente tickets + recente AI decisions
|
||||
- `/admin/articles`: artikel aanmaken + artikeloverzicht
|
||||
- `/admin/tickets`: tickets met AI-classificatie-overzicht
|
||||
|
||||
## License
|
||||
Business logic is isolated in service classes:
|
||||
- `App\Services\AdminDashboardService`
|
||||
- `App\Services\AdminArticleService`
|
||||
- `App\Services\AdminTicketService`
|
||||
|
||||
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
|
||||
## Services
|
||||
|
||||
- `web`: Nginx (public endpoint)
|
||||
- `app`: PHP-FPM Laravel runtime
|
||||
- `worker`: queue worker for async jobs
|
||||
- `postgres`: PostgreSQL 17 + pgvector
|
||||
|
||||
## Notes
|
||||
|
||||
- No external AI APIs are used.
|
||||
- Ollama runs outside Docker on your network.
|
||||
- Set `QUEUE_EMBEDDINGS=true` for async article embedding generation.
|
||||
|
||||
## Helpdesk Scraper Command
|
||||
|
||||
Importeer artikelen vanaf InternetToday Helpdesk (categorieen + subcategorieen):
|
||||
|
||||
```bash
|
||||
docker compose exec app php artisan helpdesk:import
|
||||
```
|
||||
|
||||
Opties:
|
||||
|
||||
```bash
|
||||
# test zonder schrijven
|
||||
docker compose exec app php artisan helpdesk:import --dry-run
|
||||
|
||||
# verwerk alleen eerste N artikelen
|
||||
docker compose exec app php artisan helpdesk:import --limit=25
|
||||
|
||||
# custom base-url
|
||||
docker compose exec app php artisan helpdesk:import --base-url=https://www.internettoday.nl/helpdesk
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user