# Get Started

The first thing it's check if already have access to Github Repository, after getting access you need to choose the repository for your use case:

**launchstack-stripe** or **launchstack-paddle**

### **Clone the Release**

<mark style="color:red;">That's an important step, don't clone the repository directly, use the Releases Tab on Github and clone the last.</mark>

**Let's generate our application key:**

```
sail artisan key:generate
```

**Run the migration**

```
php artisan migrate:fresh --seed
```

You will need run migration free with seed because LaunchStack depends on some data like languages, timezones and etc.

#### .Env

Inside the root project folder exist three .env examples:

* .env.example (default)
* .env.docker.example (for use with docker)
* .env.dusk.local.example (to run dusk tests locally)

Copy the correct env file example to your project root as .env and update it with your credentials.

**You can run the Launch stack on your machine in many ways:**

* Running native PHP locally, similar to Laravel Valet
* Running a virtual machine, like a Laravel Homestead
* Running a Docker (Recommended)

#### Docker Support

LaunchStack comes with support Docker Support as default, it's backed by [Laravel Sail](https://laravel.com/docs/master/sail).

To run the Launch Stack with docker, the first time you need to run the command below to install all dependencies

```
docker run --rm \
    -u "$(id -u):$(id -g)" \
    -v "$(pwd):/var/www/html" \
    -w /var/www/html \
    laravelsail/php82-composer:latest \
    composer install --ignore-platform-reqs
```

After you download all docker imagens, you need up the containers:

```
sail up -d
```

With your docker up, you can run commands like:

```
sail npm install && sail npm run dev
```

```
sail artisan make:migration create_your_table
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.launchstack.app/get-started.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
