Development
Commands you'll use daily while building on Stacktura.
Tests
197 tests across backend and frontend. Run them to verify everything works after changes.
Backend — PHPUnit
docker compose exec backend php artisan test 116 tests covering auth, billing, admin, profile, and module logic.
Frontend — Vitest
cd frontend && npm test 81 tests covering Server Actions, hooks, and utility functions.
Storybook
42 stories covering every UI component. Ideal for building and testing components in isolation.
cd frontend && npm run storybook
# Opens at http://localhost:6006 Linting & Types
Frontend
cd frontend && npm run lint
cd frontend && npx tsc --noEmit Backend
docker compose exec backend \
./vendor/bin/pint Useful Commands
# Laravel tinker
docker compose exec backend php artisan tinker
# View logs
docker compose logs -f backend
# Reset database
docker compose exec backend php artisan migrate:fresh
# Clear caches
docker compose exec backend php artisan optimize:clear Warning
migrate:fresh drops all tables and recreates them. Only use in development.