Here's a step-by-step guide to run the TaskMaster application in VS Code:
Create a new folder for your project:
mkdir taskmaster
cd taskmasterInitialize a new Next.js project:
npx create-next-app@latest .When prompted, select these options:
src/ directory? NoInstall the required packages:
npm install @radix-ui/react-checkbox @radix-ui/react-dropdown-menu @radix-ui/react-label @radix-ui/react-popover @radix-ui/react-slot @radix-ui/react-toast date-fns lucide-react class-variance-authority clsx tailwindcss-animateOpen VS Code in your project folder:
code .Create the necessary folders in your project structure:
/app/app/login/app/register/app/dashboard/components/components/ui/libCreate the shadcn UI components that are used in the project. You can install them using the shadcn CLI:
npx shadcn@latest initThen install the required components:
npx shadcn@latest add button card checkbox input label textarea toast popover calendarStart the development server:
npm run devThis will start the Next.js development server, typically on http://localhost:3000.
Open your browser and navigate to:
http://localhost:3000You should now see the TaskMaster application running locally!
VS Code Extensions that might be helpful:
Debugging in VS Code:
Local Storage:
Hot Reload:
Troubleshooting:
Let me know if you need any clarification or run into any issues!
The directory final-task-manager contains files that could conflict:
app/
components/
components.json
hooks/
lib/
next.config.mjs
package.json
pnpm-lock.yaml
postcss.config.mjs
public/
styles/
tailwind.config.ts
tsconfig.json
Either try using a new directory name, or remove the files listed above.
It looks like you're trying to create a new Next.js project in a directory that already contains files. Here are a few ways to handle this situation:
mkdir taskmaster-new
cd taskmaster-new
npx create-next-app@latest .Then follow the installation steps I provided earlier.
Since you already have a Next.js project structure in place (with app/, components/, etc.), you can simply add the TaskMaster code to your existing project:
npm install @radix-ui/react-checkbox @radix-ui/react-dropdown-menu @radix-ui/react-label @radix-ui/react-popover @radix-ui/react-slot @radix-ui/react-toast date-fns lucide-reactAdd the TaskMaster code files to their respective locations:
/app/login/page.tsx, /app/register/page.tsx, /app/dashboard/page.tsx, and /app/page.tsx/components//lib/npx shadcn@latest add button card checkbox input label textarea toast popover calendarIf you want to start fresh but keep your existing files:
# Create a backup directory
mkdir backup-files
# Move all existing files to backup
mv app components* hooks lib next.config.mjs package.json pnpm-lock.yaml postcss.config.mjs public styles tailwind.config.ts tsconfig.json backup-files/
# Create new Next.js project
npx create-next-app@latest .Then follow the installation steps from my previous message.
If your existing directory already contains a Next.js project, you might want to merge the TaskMaster functionality with it:
Copy the TaskMaster-specific files to your project:
/app/login/page.tsx, /app/register/page.tsx, /app/dashboard/page.tsxtask-item.tsx and dashboard-header.tsx to /components/