| layout | default |
|---|---|
| title | Chapter 1: Getting Started with Dyad |
| parent | Dyad Tutorial |
| nav_order | 1 |
Welcome to Dyad! If you've ever dreamed of building applications using just natural language, you're in the right place. Dyad opens up the exciting world of AI-powered app development, where you can describe what you want to build and watch the code come to life.
Dyad revolutionizes app development by:
- Natural Language Development - Describe your app in plain English
- AI-Powered Code Generation - Let AI handle the complex coding
- Local First - Run everything on your machine for privacy
- Open Source - Free and customizable for everyone
- Rapid Prototyping - Go from idea to working app in minutes
- Learning Tool - Understand development concepts through AI guidance
Before getting started, ensure you have:
- Node.js 18 or later
- At least 4GB of RAM
- A modern web browser
# Clone the Dyad repository
git clone https://github.com/dyad-sh/dyad.git
cd dyad
# Install dependencies
npm install
# Start the development server
npm run dev- Open your browser to
http://localhost:3000 - You'll see the Dyad welcome screen
- Click "Create New Project"
- Choose a project name and template
Let's create a simple to-do list app:
-
Describe Your App: Type in the prompt box:
Create a to-do list app where users can add, edit, and delete tasks -
Generate: Click the "Generate" button
-
Review: Dyad will show you the generated code and preview
-
Customize: Modify the prompt to add features:
Add categories for tasks and a due date picker
- Prompt Input: Where you describe your app requirements
- Code Editor: Shows the generated code
- Preview Panel: Live preview of your app
- Component Library: Pre-built components you can use
- Settings: Configure AI models and preferences
- Plan: Think about what your app should do
- Describe: Write a clear, detailed prompt
- Generate: Let Dyad create the initial code
- Refine: Make adjustments and add features
- Test: Try out your app in the preview
- Deploy: Share or export your finished app
Instead of: "Make a blog" Try: "Create a blog with user authentication, post creation, comments, and categories"
- User interface elements
- Data structures
- Functionality requirements
- Styling preferences
Simple App:
Build a weather app that shows current conditions and 5-day forecast
Complex App:
Create an e-commerce store with product catalog, shopping cart, user accounts, and payment integration
App Won't Generate
- Check your internet connection
- Ensure you have enough RAM available
- Try simplifying your prompt
Preview Not Loading
- Refresh the page
- Check browser console for errors
- Clear browser cache
Code Errors
- Review the generated code for syntax issues
- Use the "Fix Errors" button in Dyad
- Manually edit the code in the editor
Congratulations on creating your first AI-generated app! In the next chapter, we'll explore more advanced prompting techniques to build sophisticated applications.
Ready for more? Continue to Chapter 2: Natural Language App Building
Generated by AI Codebase Knowledge Builder
flowchart TD
A[Install Dyad: download .dmg or .exe] --> B[Launch Dyad desktop app]
B --> C[Configure LLM provider API key]
C --> D[Open or create project]
D --> E[Enter natural language prompt]
E --> F[Dyad generates code changes]
F --> G[Review diff in editor]
G --> H{Accept?}
H -->|Yes| I[Changes applied to files]
H -->|No| J[Reject / modify prompt]