Next.js Starter Kit

DAL + Server Action Patterns

Examples below demonstrate the data-access layers, mutation actions, and client-side reads via API routes.

Server Action Example

Mutations only. Reads come from services in a Server Component.

Existing Examples

Failed to load examples: Failed to list examples.

Client Fetch Example

Client components should read via API routes for cacheable GETs.

API Results

No data loaded yet.