A full-stack Todo List app built with Next.js (App Router), TypeScript, Tailwind CSS, Drizzle ORM, and PostgreSQL. It features a modern UI, persistent todos, and CRUD operations via API routes.
pnpm install
localhost:5432
(default user: postgres
, database: cursor-demo
).drizzle.config.ts
and API route files if needed.# Example (if using drizzle-kit):
pnpm drizzle-kit push:pg
pnpm dev
GET /api/todos
- List todosPOST /api/todos
- Add todoPOST /api/todos/[id]/toggle
- Toggle completionDELETE /api/todos/[id]
- Delete todoDELETE /api/todos?completed=true
- Delete all completedTo learn more about Next.js, take a look at the following resources:
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.