How theseanu/vue3-vitessr-laravel9-ddd-boilerplate works
This is a Laravel API and Vue server-rendered application organized around Auth and User domains, with repository-pattern persistence. The principal documented product workflow is user registration and login, followed by authenticated access to user/profile functionality. The sampled PHP shows the auth controller-to-repository path and JWT operations; the tree and README identify the wider Vue, routing, and domain capabilities. Frontend entry wiring and several backend implementations were not sampled, so uncertain links are omitted.
Main entry points: index.ts Vue SSR Server · User.php User Model · RouteServiceProvider.php Domain API Routes · AuthRepository.php Auth Repository
Components 21
HTTP Runtime
- Laravel HTTP Runtime
app/Infrastructure/Http/Kernel.php - Domain API Routes
app/Infrastructure/Providers/RouteServiceProvider.php
Authentication
- Auth Routes
app/Domains/Auth/Routes/auth.php - Auth Controller
app/Domains/Auth/Controllers/Authcontroller.php - Auth Requests
app/Domains/Auth/Requests/LoginRequest.php - Auth Repository
app/Domains/Auth/Repository/AuthRepository.php - JWT Auth
config/jwt.php - Auth Middleware
app/Domains/Auth/Middleware/Authenticate.php
User Domain
- User Routes
app/Domains/User/Routes/user.php - User Controller
app/Domains/User/Controllers/Usercontroller.php - User Repository
app/Domains/User/Repository/UserRepository.php - User Model
app/Domains/User/Models/User.php
Vue Application
- Vue SSR Server
ssr/infrastructure/index.ts - Login and Register
ssr/domains/auth/login/pages/Login.vue - Auth Forms
ssr/domains/auth/login/components/Form.vue - Auth Client
ssr/domains/auth/auth.ts - API Client
ssr/application/services/api.ts - Profile Page
ssr/domains/profile/pages/Profile.vue - Home Page
ssr/domains/home/pages/Home.vue
Other components
- Browser
- SQL Database
Connections 20
- Browser → Laravel HTTP Runtime: sends API requests
- Laravel HTTP Runtime → Domain API Routes: loads routes
- Domain API Routes → Auth Routes: loads domain routes
- Domain API Routes → User Routes: loads domain routes
- Auth Controller → Auth Repository: calls auth operations
- Auth Repository → JWT Auth: authenticates and issues tokens
- Auth Repository → User Model: creates or reads users
- Auth Middleware → JWT Auth: checks authentication
- User Controller → User Repository: calls user operations
- User Controller → User Model: lists users
- User Repository → User Model: reads and updates
- User Model → SQL Database: persists users
- Browser → Vue SSR Server: requests pages
- Vue SSR Server → Home Page: renders page
- Vue SSR Server → Login and Register: renders page
- Vue SSR Server → Profile Page: renders page
- Login and Register → Auth Forms: uses form
- Auth Forms → Auth Client: submits credentials
- Auth Client → API Client: uses API client
- API Client → Laravel HTTP Runtime: sends API requests