-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
73 lines (62 loc) · 1.69 KB
/
Makefile
File metadata and controls
73 lines (62 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
.PHONY: help install dev build serve migrate seed clean demo test
help:
@echo "AI Search - Available Commands"
@echo "=============================="
@echo ""
@echo "Setup:"
@echo " make install - Install all dependencies"
@echo " make migrate - Run database migrations"
@echo " make seed - Seed database with sample data"
@echo ""
@echo "Development:"
@echo " make dev - Start development servers"
@echo " make serve - Start Laravel server only"
@echo " make build - Build production assets"
@echo ""
@echo "Data:"
@echo " make demo - Load demo data via API"
@echo " make clean - Clean build files"
@echo ""
@echo "Testing:"
@echo " make test - Test Python script"
@echo ""
install:
@echo "📦 Installing dependencies..."
composer install
npm install
pip3 install -r requirements.txt
@echo "✅ Dependencies installed"
migrate:
@echo "🔄 Running migrations..."
touch database/database.sqlite
php artisan migrate
@echo "✅ Migrations complete"
seed:
@echo "🌱 Seeding database..."
php artisan db:seed
@echo "✅ Database seeded"
dev:
@echo "🚀 Starting development servers..."
@echo "Laravel: http://localhost:8000"
@echo "Press Ctrl+C to stop"
@make -j2 serve vite
serve:
php artisan serve
vite:
npm run dev
build:
@echo "🏗️ Building production assets..."
npm run build
@echo "✅ Build complete"
demo:
@echo "📊 Loading demo data..."
python3 scripts/demo_data_loader.py
@echo "✅ Demo data loaded"
clean:
@echo "🧹 Cleaning build files..."
rm -rf public/build
rm -rf node_modules/.vite
@echo "✅ Clean complete"
test:
@echo "🧪 Testing Python script..."
python3 scripts/ai_search_api.py