> ## Documentation Index
> Fetch the complete documentation index at: https://ayakaleaf-pro.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Setup Develop Environment (Codespace)

> Setup your development environment with GitHub Codespace.

To save time and quickly build the development environment, we provide another version of the development environment configuration, that's GitHub Codespace.

## Configuration Tutorial

<Steps>
  <Step title="Create Codespaces">
    Click the following button to create a cloud codespaces for server-pro development.

    [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/ayaka-notes/ayakaleaf-pro)

    It's more recommented to choose **Machine Type** at least **4-core**. For larger machine type, you can make a request to GitHub's official support team by filing a ticket [here](https://support.github.com/contact?tags=rr-codespaces%2Ccat_codespaces).

    <Frame>
      <img src="https://mintcdn.com/ayakaleaf-pro/x9kfDjtWlyyhG_mR/images/dev/image.png?fit=max&auto=format&n=x9kfDjtWlyyhG_mR&q=85&s=d723c8474a8fe076724ad4b8404c90a0" alt="" width="1319" height="990" data-path="images/dev/image.png" />
    </Frame>
  </Step>

  <Step title="Launch Setup Script">
    You will need to wait patiently before the codespace get created. After you can have access to your Terminal, run the folloing command:

    ```text theme={null}
    cd develop/
    bin/setup
    ```

    <Frame>
      <img src="https://mintcdn.com/ayakaleaf-pro/x9kfDjtWlyyhG_mR/images/dev/image-1.png?fit=max&auto=format&n=x9kfDjtWlyyhG_mR&q=85&s=67fe318b5d049b5eb8317b41154ca3b4" alt="" width="1086" height="587" data-path="images/dev/image-1.png" />
    </Frame>

    <Warning>
      This script (`bin/setup`) allows you to set up the development environment on the latest commit of the `server-pro` branch in the shortest possible time. It may not be applicable to older versions/other branches.

      We build development docker image every day with [GitHub Action](https://github.com/ayaka-notes/ayakaleaf-pro/actions).
    </Warning>
  </Step>

  <Step title="Access Your Launchpad">
    Switch to port tab, you will see a list of avaiable web port. Click the one with `80`. You should see launchpad page now.

    <Frame>
      <img src="https://mintcdn.com/ayakaleaf-pro/x9kfDjtWlyyhG_mR/images/dev/image-2.png?fit=max&auto=format&n=x9kfDjtWlyyhG_mR&q=85&s=649782162b3038fde73e6b9c3be0a5ce" alt="" width="1492" height="589" data-path="images/dev/image-2.png" />
    </Frame>

    You will see:

    <Frame>
      <img src="https://mintcdn.com/ayakaleaf-pro/x9kfDjtWlyyhG_mR/images/dev/image-3.png?fit=max&auto=format&n=x9kfDjtWlyyhG_mR&q=85&s=2cb7a394e9e4724a2145f5a631447237" alt="" width="1742" height="1183" data-path="images/dev/image-3.png" />
    </Frame>
  </Step>

  <Step title="Enjoy Development">
    Now, time to your own time! Start build your awesome feature. You need to run the following command to enable realtime display:

    ```bash title="bash" wrap theme={null}
    docker compose -f docker-compose.yml -f docker-compose.dev.yml -f ./docker-compose.image.yml up --no-deps --detach
    ```
  </Step>
</Steps>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.