refactor: align codebase with EventCrew domain and trim legacy band stack
- Update API: events, users, policies, routes, resources, migrations - Remove deprecated models/resources (customers, setlists, invitations, etc.) - Refresh admin app and docs; remove apps/band Made-with: Cursor
This commit is contained in:
56
docs/API.md
Normal file
56
docs/API.md
Normal file
@@ -0,0 +1,56 @@
|
||||
# EventCrew API Contract
|
||||
|
||||
# Base: /api/v1/
|
||||
|
||||
# Auth: Bearer token (Sanctum)
|
||||
|
||||
## Auth
|
||||
|
||||
POST /auth/login
|
||||
POST /auth/logout
|
||||
GET /auth/me
|
||||
|
||||
## Organisations
|
||||
|
||||
GET /organisations -- lijst (super admin)
|
||||
POST /organisations -- aanmaken
|
||||
GET /organisations/{org} -- detail
|
||||
PUT /organisations/{org} -- bijwerken
|
||||
GET /organisations/{org}/members -- leden
|
||||
POST /organisations/{org}/invite -- uitnodigen
|
||||
|
||||
## Events
|
||||
|
||||
GET /organisations/{org}/events
|
||||
POST /organisations/{org}/events
|
||||
GET /organisations/{org}/events/{event}
|
||||
PUT /organisations/{org}/events/{event}
|
||||
|
||||
## Festival Sections
|
||||
|
||||
GET /events/{event}/sections
|
||||
POST /events/{event}/sections
|
||||
GET /events/{event}/sections/{section}
|
||||
|
||||
## Time Slots
|
||||
|
||||
GET /events/{event}/time-slots
|
||||
POST /events/{event}/time-slots
|
||||
|
||||
## Shifts
|
||||
|
||||
GET /events/{event}/sections/{section}/shifts
|
||||
POST /events/{event}/sections/{section}/shifts
|
||||
PUT /events/{event}/sections/{section}/shifts/{shift}
|
||||
POST /events/{event}/sections/{section}/shifts/{shift}/assign
|
||||
POST /events/{event}/sections/{section}/shifts/{shift}/claim
|
||||
|
||||
## Persons
|
||||
|
||||
GET /events/{event}/persons
|
||||
POST /events/{event}/persons
|
||||
GET /events/{event}/persons/{person}
|
||||
PUT /events/{event}/persons/{person}
|
||||
POST /events/{event}/persons/{person}/approve
|
||||
|
||||
# ... (volledig API contract uitbreiden per module)
|
||||
1154
docs/SCHEMA.md
Normal file
1154
docs/SCHEMA.md
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
# Band Management - Setup Guide
|
||||
# Event Crew - Setup Guide
|
||||
|
||||
This guide walks you through setting up the Band Management project from scratch.
|
||||
This guide walks you through setting up the Event Crew project from scratch.
|
||||
|
||||
## Cursor AI Configuration
|
||||
|
||||
@@ -60,7 +60,7 @@ docker -v # Should show Docker version
|
||||
## Step 1: Start Docker Services
|
||||
|
||||
```bash
|
||||
cd band-management
|
||||
cd event-crew
|
||||
make services
|
||||
```
|
||||
|
||||
@@ -85,8 +85,8 @@ Requirements:
|
||||
- Set up CORS for localhost:5173, localhost:5174, localhost:5175
|
||||
- Use MySQL with these credentials:
|
||||
- Host: 127.0.0.1
|
||||
- Database: band_management
|
||||
- Username: band_management
|
||||
- Database: event_crew
|
||||
- Username: event_crew
|
||||
- Password: secret
|
||||
|
||||
Follow the conventions in .cursor/rules for code style.
|
||||
@@ -95,7 +95,7 @@ Follow the conventions in .cursor/rules for code style.
|
||||
### Manual Alternative
|
||||
|
||||
```bash
|
||||
cd band-management
|
||||
cd event-crew
|
||||
composer create-project laravel/laravel api
|
||||
cd api
|
||||
composer require laravel/sanctum
|
||||
@@ -107,8 +107,8 @@ Then configure `api/.env`:
|
||||
DB_CONNECTION=mysql
|
||||
DB_HOST=127.0.0.1
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=band_management
|
||||
DB_USERNAME=band_management
|
||||
DB_DATABASE=event_crew
|
||||
DB_USERNAME=event_crew
|
||||
DB_PASSWORD=secret
|
||||
|
||||
SANCTUM_STATEFUL_DOMAINS=localhost:5173,localhost:5174,localhost:5175
|
||||
@@ -164,7 +164,7 @@ cd ../customers && pnpm install
|
||||
**apps/admin/.env.local**
|
||||
```env
|
||||
VITE_API_URL=http://localhost:8000/api/v1
|
||||
VITE_APP_NAME="Band Management Admin"
|
||||
VITE_APP_NAME="Event Crew Admin"
|
||||
```
|
||||
|
||||
**apps/band/.env.local**
|
||||
|
||||
Reference in New Issue
Block a user