Skip to content

devTym/smart-support-ticket-system

Repository files navigation

Smart Support Ticket System (Laravel 11)

Minimal backend API for support tickets.


Requirements

  • Docker
  • Docker Compose

Ports

This project uses these ports by default:

  • App (Laravel): 8088http://localhost:8088
  • MySQL: 3309 (host) → 3306 (container)

If you want to change ports — edit docker-compose.yml.


Installation / Setup

Build & start containers

docker compose up -d --build

Install dependencies + generate APP_KEY + run migrations

make install

Queue worker

make queue

API

Base URL: http://localhost:8088

Create ticket — POST /api/tickets

curl -X POST "http://localhost:8088/api/tickets" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Payment failed",
    "description": "I tried to pay with my card but the transaction fails with an error. Please help."
  }'

Get ticket — GET /api/tickets/{id}

curl "http://localhost:8088/api/tickets/1"

Make commands

Enter container shell

make bash

Run tests

make test

Run queue worker

make queue

Install app (env + composer + key + migrate)

make install

Notes

Env configuration (OpenAI)

Add these variables to your .env file (each on its own line):

AI_DRIVER=openai
OPENAI_API_KEY=sk-...your-key-here...
OPENAI_MODEL=gpt-4o-mini

If you changed service name for DB in docker-compose.yml, ensure .env has:

DB_HOST=ssts_db

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages