your-first-project.mdx 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. ---
  2. title: "Build Your First Project"
  3. description: "Build your first project with Cline in under a minute."
  4. ---
  5. Ready to see Cline in action? This hands-on tutorial will walk you through building a website in under a minute. You'll experience how Cline understands your requirements, creates files, and iterates on your feedback—all through natural conversation.
  6. By the end of this guide, you'll have built a working website and learned the fundamentals of working with Cline.
  7. ## Prerequisites
  8. - **Cline installed** in your editor ([Install Guide](/getting-started/installing-cline))
  9. - **AI model selected** ([Model Setup](/getting-started/selecting-your-model))
  10. - **Any folder open** in your editor (or create a new empty folder)
  11. ## Step 1: Open Cline
  12. Click the Cline icon in your editor's sidebar (left side). The chat panel will open.
  13. <Info>
  14. **Quick Tip:** You can also use `Cmd+Shift+P` (Mac) or `Ctrl+Shift+P` (Windows/Linux) and search for "Cline: Open In New Tab"
  15. </Info>
  16. ## Step 2: Give Cline a Task
  17. Copy and paste this prompt into Cline's chat:
  18. ```
  19. Create a simple website in a single HTML file. It should have:
  20. - A welcome message saying "Hello from Cline!"
  21. - A colorful gradient background
  22. - A button that cycles through different color themes when clicked
  23. - Modern, clean design
  24. - All CSS and JavaScript should be included in the same HTML file
  25. ```
  26. <Frame>
  27. <img src="https://storage.googleapis.com/cline_public_images/chat-prompt.png" alt="Cline Chat Prompt"/>
  28. </Frame>
  29. Press Enter and watch Cline work!
  30. ## Step 3: What Happens Next
  31. Cline will:
  32. 1. **Create a single file:**
  33. - `index.html` - A complete webpage with embedded CSS and JavaScript
  34. 2. **Ask for approval** (unless you've enabled auto-approve)
  35. - Click "Approve" to let Cline create the file
  36. - You can review what it plans to do first
  37. 3. **Complete the task** within seconds
  38. ## Step 4: View Your Website
  39. Once Cline finishes:
  40. 1. **Find `index.html`** in your editor's file explorer
  41. 2. **Right-click it** and select:
  42. - "Reveal in Finder/Explorer" then double-click to open in your browser
  43. 3. **Click the button** to see the color themes change!
  44. ## Try Making Changes
  45. In the same chat, try asking:
  46. ```
  47. Add a counter that shows how many times the button has been clicked
  48. ```
  49. or
  50. ```
  51. Make the welcome message fade in when the page loads
  52. ```
  53. Cline understands the context from your previous conversation and will update the file accordingly.
  54. <Tip>
  55. **You now know how to:**
  56. - Give Cline a task with a clear prompt
  57. - Review and approve Cline's actions
  58. - Build a complete project in seconds
  59. - Iterate and improve on existing work
  60. </Tip>
  61. ## Next Steps
  62. Now that you've experienced Cline's capabilities, explore more:
  63. <CardGroup cols={2}>
  64. <Card title="@ Mentions" href="/features/at-mentions/overview" icon="at">
  65. Reference specific files, folders, and URLs in your prompts
  66. </Card>
  67. <Card title="Plan & Act Modes" href="/features/plan-and-act" icon="diagram-project">
  68. Master planning vs. execution for complex tasks
  69. </Card>
  70. <Card title="Cline Rules" href="/features/cline-rules" icon="list-check">
  71. Set project-specific guidelines for consistent results
  72. </Card>
  73. <Card title="Prompting Guide" href="/prompting/prompt-engineering-guide" icon="wand-magic-sparkles">
  74. Learn to write prompts that get the best results
  75. </Card>
  76. </CardGroup>
  77. ## Need Help?
  78. - **Stuck?** Try starting fresh with `/new` in the chat
  79. - **Found a bug?** Use `/reportbug` to help us improve
  80. - **Have questions?** Join our [Discord community](https://discord.gg/cline)