Setup - step 2

Download your project from v0, open it in Cursor, and install dependencies

Download from v0

If you used v0, download your project and open it on Cursor. You can do this simply by dragging and dropping the project's folder into Cursor.

Install Dependencies

Next thing is to ask your chat to install the project. Tell it to:

npm i @package.json

If the project doesn't install because of some conflicts, AI is going to make some changes to your `package.json` file (which includes dependencies in libraries your project is using to leverage existing code and build things faster) until everything is installed properly. Allow it to make these changes.

Then type this in your terminal to check if it did a good job:

npm i

If there were errors, select the text in the terminal and add them to the chat and ask AI to fix it.

Get Project Structure

Once you have the initial code from the first prompt, run this command:

brew install tree

After things have installed, run this:

tree -L 5 -I 'node_modules|.git'

This will give you your existing project structure. It helps AI have better context and understanding of what's happening in your code base (it helps your AI make fewer mistakes, similar to how passing it documentation helps).

Example output:

├── src
│   ├── app
│   │   ├── api
│   │   │   ├── admin
│   │   │   │   └── wishes
│   │   │   └── wishes
│   │   │       ├── confirm
│   │   │       ├── route.ts
│   │   │       └── submit
│   │   ├── globals.css
│   │   ├── layout.tsx
│   │   └── page.tsx
│   ├── components
│   │   ├── FlowingWishNetwork.tsx
│   │   ├── GlitchText.tsx
│   │   ├── hooks
│   │   ├── lib
│   │   │   ├── mongodb.ts
│   │   │   └── utils.ts
│   │   └── providers
│   │       └── DynamicProvider.tsx
├── tailwind.config.ts
└── tsconfig.json

Create Project Documentation

Add the results from the command above to the chat and ask AI to:

"Create a markdown file explaining what you just did. I want you to write down an overview of my project and a brief explanation of each file you have created, what each file does and how they relate to one another. Include my existing project architecture, and how things are working together to achieve what we want. Then, create a checklist of all things that are left to do. Make this a step by step process and break things down to small tasks I will need to execute to accomplish my goal/objective."

The goal is to find the best method to have AI create itself a good product description/specification document breaking down the features, user journey and project architecture while having context of the overall goal/objective and what the project is about.