> ## 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.

# 開発環境のセットアップ（Codespace）

> GitHub Codespace で開発環境をセットアップします。

時間を節約し、開発環境を素早く構築できるよう、もう一つの開発環境構成として GitHub Codespace を用意しています。

## 設定チュートリアル

<Steps>
  <Step title="Codespaces を作成する">
    以下のボタンをクリックして、server-pro 開発用のクラウド Codespaces を作成します。

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

    **Machine Type** は少なくとも **4-core** を選択することをおすすめします。より大きなマシンタイプが必要な場合は、[こちら](https://support.github.com/contact?tags=rr-codespaces%2Ccat_codespaces)から GitHub の公式サポートチームにチケットを提出してリクエストできます。

    <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="セットアップスクリプトを実行する">
    Codespace が作成されるまで、しばらくお待ちください。ターミナルにアクセスできるようになったら、次のコマンドを実行します。

    ```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>
      このスクリプト（`bin/setup`）を使うと、`server-pro` ブランチの最新コミットで開発環境を最短時間でセットアップできます。古いバージョンや他のブランチには適用できない場合があります。

      開発用 Docker イメージは [GitHub Action](https://github.com/ayaka-notes/overleaf-pro/actions) で毎日ビルドしています。
    </Warning>
  </Step>

  <Step title="Launchpad にアクセスする">
    ポートタブに切り替えると、利用可能な Web ポートの一覧が表示されます。`80` のものをクリックすると、Launchpad ページが表示されます。

    <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>

    次のように表示されます。

    <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="開発を楽しむ">
    さあ、ここからはあなたの時間です！素晴らしい機能の開発を始めましょう。リアルタイム表示を有効にするには、次のコマンドを実行する必要があります。

    ```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.