How w3cj/nuxt-tasks-app works
Project type and purpose
• This is a full-stack Nuxt 3 application (“Nuxt Tasks App”) that provides a simple tasks management UI in the browser and a set of server API routes for CRUD operations.
• The README confirms it demonstrates layouts, pages, data-fetching via serverless endpoints, and database migrations.
File structure
• Top-level files:
• nuxt.config.ts – Nuxt configuration
• app.vue – root app component
• .env.example – environment variable template
• package.json & pnpm-workspace.yaml – dependency & workspace config
• Frontend code:
• /layouts/default.vue – page shell
• /components/app/nav-bar.vue – re-usable UI element
• /pages/*.vue – route-mapped pages (index, create, tasks/[id])
• Backend/API:
• /server/api/tasks.get.ts, tasks.post.ts, tasks/[id].get.ts – Nitroless serverless endpoints for fetching and creating tasks
• server/tsconfig.json – TypeScript settings for API code
• Data layer:
• drizzle.config.ts – Drizzle ORM config
• /lib/db/schema.ts – table definitions
• /lib/db/migrations/*.sql & meta – migration scripts and version journal
• /lib/env.ts & try-parse-env.ts – environment-variable loader
• local.db – SQLite file used in development
• Other:
• /public/robots.txt – static asset
• eslint.config.mjs, tsconfig.json – lint and TypeScript setup
Key points from README
• Uses pnpm, environment variables, and Drizzle CLI to run migrations.
• Development server runs at localhost:3000.
• Targets demonstration of Nuxt layouts, data fetching, and API routing.