Demo
Next.js + MySQL tasks
Server Actions and API routes talk to MySQL through a pooled mysql2 connection. Create .env.local from .env.example, apply sql/schema.sql, then run npm run dev. Since MySQL isn’t available, this demo is running in demo (in-memory) mode.
Demo mode (no MySQL connection)
Add/Delete will work, but data resets when the server restarts.
New task
Your tasks
REST: GET/POST /api/tasks, DELETE /api/tasks/:id
No tasks yet. Add one above — data is stored in an in-memory demo store.