> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/dev/environment/setup-develop-environment-codespace.md).

# Setup Develop Environment (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

{% stepper %}
{% step %}

### 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/overleaf-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).

<figure><img src="/files/GAWyL4UNvMYImzYInEir" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

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

```
cd develop/
bin/setup
```

<figure><img src="/files/CK3XfM1TtVsoqVH92ZYO" alt=""><figcaption></figcaption></figure>

{% hint style="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/overleaf-pro/actions).
{% endhint %}
{% endstep %}

{% step %}

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

<figure><img src="/files/lKLHbauaB1hQMxUxJk7d" alt=""><figcaption></figcaption></figure>

You will see:

<figure><img src="/files/66DF4qeEQuw0MKPasD8t" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Enjoy Development

Now, time to your own time! Start build your awesome feature. You need to run the following command to enable realtime display:

{% code title="bash" overflow="wrap" %}

```bash
docker compose -f docker-compose.yml -f docker-compose.dev.yml -f ./docker-compose.image.yml up --no-deps --detach
```

{% endcode %}
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://ayakaleaf-pro.ayaka.space/dev/environment/setup-develop-environment-codespace.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
