chore: init repo with scaffold files

This commit is contained in:
Tim Stollberg 2026-06-23 15:50:10 +07:00
parent 214bf0e5a1
commit 9f8f256612
3 changed files with 55 additions and 0 deletions

12
.env.example Normal file
View file

@ -0,0 +1,12 @@
APP_NAME=MandantCRM
APP_ENV=local
APP_KEY=base64:PLACEHOLDER_KEY
APP_URL=http://localhost
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=mandantcrm
DB_USERNAME=placeholder_user
DB_PASSWORD=placeholder_pass
SANCTUM_STATEFUL_DOMAINS=localhost,localhost:3000
SESSION_DOMAIN=localhost
FRONTEND_URL=http://localhost:3000

14
.gitignore vendored Normal file
View file

@ -0,0 +1,14 @@
.env
*.log
.DS_Store
.idea/
node_modules/
vendor/
backend/storage/logs/
backend/storage/framework/cache/
backend/storage/framework/sessions/
backend/storage/framework/views/
backend/bootstrap/cache/
frontend/.nuxt/
frontend/.output/
frontend/dist/

29
CLAUDE.md Normal file
View file

@ -0,0 +1,29 @@
# Mandant CRM — Monorepo
## Layout
- `backend/` — Laravel 10 API + Filament admin
- `frontend/` — Nuxt 3 CSR SPA
- `docker/` — Docker Compose, nginx, PHP Dockerfile
## Dev commands (run from repo root)
```
make dev # docker compose up -d
make stop # docker compose down
make test # composer test inside backend container
make lint # composer static-analysis inside backend container
make migrate # php artisan migrate
make fresh # migrate:fresh --seed
make shell-php # bash into backend container
make shell-node # sh into frontend container
```
## Agent scope rules
- Backend feature → edit only `backend/`
- Frontend feature → edit only `frontend/`
- Auth / Docker / infra → root + both apps
- New module → follow scaffold in `.claude/skills/new-module.md`
- New history type → follow `.claude/skills/new-history-type.md`
## Commit style
feat/fix/chore/refactor/test/docs — conventional commits
Examples: `feat(client): add search endpoint`, `fix(history): soft delete cascade`