> For the complete documentation index, see [llms.txt](https://overleaf-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://overleaf-pro.ayaka.space/on-premises/pt/instalacao/using-the-github-codespace.md).

# Utilizar o GitHub Codespace

A forma mais fácil de configurar o seu Overleaf Pro é usar o GitHub Codespace, onde todas as variáveis de ambiente estão pré-configuradas para garantir que o pode usar imediatamente.

{% hint style="warning" %}
Quando executar contentores Docker usando GitHub Codespaces, o Codespace não se encerrará automaticamente e continuará a ser **cobrado**. Para as regras de faturação do GitHub Codespaces, consulte [regras de faturação do GitHub Codespaces](https://docs.github.com/en/billing/concepts/product-billing/github-codespaces).

Para gerir os seus GitHub Codespaces, visite <https://github.com/codespaces>. Quando já não precisar dele, elimine o seu Codespace atempadamente.
{% endhint %}

Pré-configurámos **pré-configuradas** as seguintes funcionalidades:

* [x] Sistema de modelos
* [x] Registo público
* [x] Compilação em Sandbox
* [x] Ponte Git para o Overleaf
* [x] Painel de revisão

{% stepper %}
{% step %}

### Crie o seu GitHub Codespace

Clique no botão seguinte para criar o seu GitHub Codespace. Em termos de configuração do servidor, **2 núcleos com 8 GB de RAM** são geralmente suficientes para edição diária individual. Se planeia colaborar numa **pequena equipa**, recomendamos escolher uma configuração com **4 núcleos ou mais**.

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

{% step %}

### Inicializar instância do Overleaf

Quando o seu codespace estiver pronto, execute o seguinte comando no seu bash para inicializar a sua instância do Overleaf.

{% code title="bash" %}

```bash
./init.sh
```

{% endcode %}

{% hint style="info" %}
Talvez seja necessário esperar pelo menos 3 minutos até descarregarmos todas as imagens Docker de que necessita.
{% endhint %}

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

{% step %}

### Tornar a porta 80 disponível

Mude para o separador **Portas** e siga estes passos para tornar a porta 80 pública.

<figure><img src="/files/1faadfbae55daffa770b3bedeb5b5cd84de3c1ad" alt=""><figcaption></figcaption></figure>

Depois disso, pode clicar em **Endereço encaminhado** para visitar a sua instância do Overleaf. Talvez seja necessário adicionar `/launchpad` para visitar a página de boas-vindas do Overleaf.
{% endstep %}

{% step %}

### Crie a sua conta de administrador

Introduza a sua conta de administrador e palavra-passe, depois clique no botão Registar.

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

{% step %}

### Divirta-se a escrever

Agora, está na hora de desfrutar da sua $$\LaTeX$$ escrita!

<figure><img src="/files/0e658476c27fe088fee58b0fb05efba0bc753e68" alt=""><figcaption></figcaption></figure>
{% 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://overleaf-pro.ayaka.space/on-premises/pt/instalacao/using-the-github-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.
