# Quick Start Guide

This guide will help you get started with the Rapid Startup Development Toolkit quickly. Follow these steps to create, develop, and deploy your first startup project.

## Installation

Install the Rapid Startup Development Toolkit globally:

```bash
npm install -g rapid-startup-toolkit
```

Verify the installation:

```bash
rst --version
```

## Creating a New Project

Create a new project using one of the available templates:

```bash
rst create my-startup --template saas
```

Available templates:
- `saas`: A SaaS application template with authentication, dashboard, and billing
- `e-commerce`: An e-commerce application template with product listings and cart
- `blog`: A blog template with content management
- `landing-page`: A simple landing page template

For a more guided experience, use interactive mode:

```bash
rst create my-startup --interactive
```

## Project Structure

After creating a project, you'll have a directory structure similar to this:

```
my-startup/
├── public/             # Static assets
├── src/
│   ├── app/            # Next.js app directory
│   ├── components/     # React components
│   ├── lib/            # Utility functions and libraries
│   └── styles/         # Global styles
├── .eslintrc.js        # ESLint configuration
├── .gitignore          # Git ignore file
├── next.config.js      # Next.js configuration
├── package.json        # Project dependencies
├── postcss.config.js   # PostCSS configuration
├── rsdt.config.js      # RSDT configuration
├── tailwind.config.js  # Tailwind CSS configuration
└── tsconfig.json       # TypeScript configuration
```

## Development

Navigate to your project directory:

```bash
cd my-startup
```

Start the development server:

```bash
rst dev
```

This will start the Next.js development server, and you can view your application at `http://localhost:3000`.

## Generating Components

Generate UI components:

```bash
rst generate component Button
```

Generate form components:

```bash
rst generate component ContactForm --type form
```

Generate layout components:

```bash
rst generate component DashboardLayout --type layout
```

## Generating API Routes

Generate API routes:

```bash
rst generate api users
```

Generate API routes with specific methods:

```bash
rst generate api products --methods GET,POST
```

## Building for Production

Build your application for production:

```bash
rst build
```

Preview the production build:

```bash
rst start
```

## Deployment

Deploy your application to a hosting platform:

```bash
rst deploy
```

Deploy to a specific platform:

```bash
rst deploy --platform vercel
```

Configure a custom domain:

```bash
rst deploy:domain example.com
```

## CI/CD Setup

Initialize CI/CD configuration:

```bash
rst cicd:init
```

Choose a CI/CD platform:

```bash
rst cicd:init --platform github
```

## Next Steps

1. Explore the [User Guide](./user-guide.md) for detailed documentation
2. Check out the [Best Practices](./best-practices.md) for tips on building high-quality applications
3. Review the [Checklists](./checklists.md) for different stages of startup development
4. Consult the [Troubleshooting Guide](./troubleshooting.md) if you encounter any issues

## Common Commands

Here's a quick reference of common commands:

| Command | Description |
|---------|-------------|
| `rst create <name>` | Create a new project |
| `rst dev` | Start the development server |
| `rst generate component <name>` | Generate a new component |
| `rst generate api <name>` | Generate a new API route |
| `rst build` | Build the application for production |
| `rst deploy` | Deploy the application |
| `rst deploy:status` | Check deployment status |
| `rst cicd:init` | Initialize CI/CD configuration |

For more detailed information on each command, use the `--help` flag:

```bash
rst <command> --help
```

