A modern task management application built with Next.js, TypeScript, and PostgreSQL.
- Next.js 15 - React framework for server-rendered applications
- React - UI library
- TypeScript - Type-safe JavaScript
- Tailwind CSS - Utility-first CSS framework
- Framer Motion - Animation library
- React Hook Form - Form handling with validation
- Zod - Schema validation
- Next.js API Routes - Server-side API endpoints
- PostgreSQL - Relational database
- Drizzle ORM - Type-safe database ORM
- Node.js (v18 or later)
- PostgreSQL database
- npm, yarn, or pnpm package manager
-
Clone the repository:
git clone [repository-url] cd taskflow -
Install dependencies:
npm install # or yarn install # or pnpm install
-
Set up environment variables:
- Copy
.env.exampleto.env - Update the
DATABASE_URLwith your PostgreSQL connection string:DATABASE_URL=postgresql://username:password@host:port/database - Update the
SESSION_SECRETwith any text of your choice:SESSION_SECRET=your_secret_key
- Copy
-
Set up the database:
# Generate database migrations npm run db:generate # Apply migrations npm run db:push # Seed the database with test data npm run db:seed
-
Start the development server:
npm run dev # or yarn dev # or pnpm dev
The application will be available at http://localhost:3000
npm run dev- Start the development server with Turbopacknpm run build- Build the application for productionnpm run start- Start the production servernpm run lint- Run ESLintnpm run db:generate- Generate database migrationsnpm run db:migrate- Apply database migrationsnpm run db:studio- Open Drizzle Studio for database managementnpm run db:push- Push schema changes to the databasenpm run db:seed- Seed the database with test data
The database seeding script creates:
- A test user (email: [email protected], password: password123)
- A sample project
- Several test tasks with different statuses
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.
Adding a taskflow PR for test purpose Adding number 2 test Another change after review Another fix
add elite level 1