Skip to content

Commit

Permalink
[EDU-5633] Vuepress Boilerplate guide (#1395)
Browse files Browse the repository at this point in the history
* feat: add vuepress boilerplate guide

* feat: add translation

* feat: add entries to guides home

* feat: add entries to templates home

* fix: minor changes

* Apply suggestions from code review

Co-authored-by: Mariana Bellorín Aguilera <[email protected]>

* fix: update pt-br steps

---------

Co-authored-by: Mariana Bellorín Aguilera <[email protected]>
  • Loading branch information
guiafonso-ol and MarianaAguilera authored Dec 24, 2024
1 parent 09bccda commit ef4a9e9
Show file tree
Hide file tree
Showing 6 changed files with 212 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/content/docs/en/pages/guides/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ permalink: /documentation/products/guides/
- [How to deploy edge applications with the React Boilerplate](/en/documentation/products/guides/react-boilerplate/)
- [How to deploy edge applications with the Svelte Boilerplate](/en/documentation/products/guides/svelte-boilerplate/)
- [How to deploy edge applications with the Vue Boilerplate](/en/documentation/products/guides/vue-boilerplate/)
- [How to deploy edge applications with the VuePress Boilerplate](/en/documentation/products/guides/vuepress-boilerplate/)
- [How to deploy edge applications with the Vue3/Vite Boilerplate](/en/documentation/products/guides/vue-vite-boilerplate/)
- [How to deploy the Azion Starter Kit](/en/documentation/products/guides/azion-starter-kit/)
- [How to deploy the Book Store React template](/en/documentation/products/guides/book-store-react/)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
---
title: How to deploy the VuePress Boilerplate
description: This template deploys a repository with a project based on VuePress.
meta_tags: guides, Azion Marketplace, web, VuePress
namespace: docs_guides_vuepress_boilerplate
permalink: /documentation/products/guides/vuepress-boilerplate/
---

import Tag from 'primevue/tag';

<Tag severity="info" client:only="vue">
Preview
</Tag>

With the **VuePress Boilerplate**, you can start a project using [VuePress](https://vuepress.vuejs.org/guide/introduction.html) and deploy it at the edge. **VuePress** is a static site generator that allows developers to write content such as documentation and blogs in **Markdown**.

The deployment of this template creates a GitHub repository containing your project, as well as an edge application and a domain to facilitate your access and management through Azion Edge Platform.

This template uses VuePress version `2.0.0`.

---

## Requirements

- A [GitHub account](https://github.com/signup) to connect with Azion and create your new repository.
- Every push will be deployed automatically to this repository to keep your project updated.
- This template uses [Application Accelerator](/en/documentation/products/build/edge-application/application-accelerator/), [Edge Functions](/en/documentation/products/build/edge-application/edge-functions/), and [Edge Cache](https://www.azion.com/en/documentation/products/build/edge-application/edge-cache/), and it could generate usage-related costs. Check the [pricing page](https://www.azion.com/en/pricing/) for more information.

---

## Deploying the template

You can obtain and configure your template through the Azion Console. To easily deploy it at the edge, click the button below.

<LinkButton
label="Deploy"
link="https://console.azion.com/create/vuepress-boilerplate"
icon="ai ai-azion"
icon-pos="left"
/>

---

## Setting up the template

In the configuration form, you must provide the information to configure your application. Fill in the presented fields.

Fields identified with an asterisk are mandatory.

1. Connect Azion with your GitHub account.
- A pop-up window will open to confirm the installation of the [Azion GitHub App](/en/documentation/products/guides/azion-github-app/), a tool that connects your GitHub account with Azion's platform.
- Define your permissions and repository access as desired.
2. Select the **Git Scope** to work with.
3. Define a name for your edge application.
- The bucket for storage and the edge function will use the same name.
- Use a unique and easy-to-remember name. If the name has already been used, the platform returns an error message.
4. Click the **Deploy** button to start the deployment process.

During the deployment, you'll be able to follow the process through a window showing off the logs. When it's complete, the page shows information about the application and some options to continue your journey.

:::note
The link to the edge application allows you to see it on the browser. However, it takes a certain time to propagate and configure the application in Azion's edge locations. It may be necessary to wait a few minutes for the URL to be activated and for the application page to be effectively displayed in the browser.
:::

---

## Managing the template

Considering that this initial setup may not be optimal for your specific edge application, all settings can be customized any time you need by using Azion's platform.

To manage and edit your edge application's settings, follow these steps:

1. [Access Azion Console](https://console.azion.com).
2. On the upper-left corner, select **Products menu**, the icon with three horizontal lines, > **Edge Application**.
- You'll be redirected to the **Edge Application** page. It lists all the edge applications you've created.
3. Find the edge application related to your template and select it.
- The list is organized alphabetically. You can also use the **search bar** located in the upper-left corner of the list; currently, it filters only by **Application Name**.

After selecting the edge application you'll work on, you'll be directed to a page containing all the settings you can configure.

:::tip
Read the documentation about [managing edge applications](/en/documentation/products/build/edge-application/first-steps/) for more details.
:::

### Adding a custom domain

The edge application created during the deployment has an assigned Azion domain to make it accessible through the browser. The domain has the following format: `xxxxxxxxxx.map.azionedge.net/`. However, you can add a custom domain for users to access your edge application through it.

import LinkButton from 'azion-webkit/linkbutton';

<LinkButton link="/en/documentation/products/guides/configure-a-domain/" label="Go to configuring a domain guide" severity="secondary" />
Original file line number Diff line number Diff line change
Expand Up @@ -539,18 +539,31 @@ The Azion Vue Boilerplate provides an automation solution to build a Vue Single-
icon-pos="left"
/>

#### Vuepress Boilerplate

The Vuepress Boilerplate provides a solution to quickly set up a static web application using VuePress.

<LinkButton link="/en/documentation/products/guides/vuepress-boilerplate/" label="Go to the Vuepress Boilerplate guide" severity="secondary" />

<LinkButton
label="Deploy"
link="https://console.azion.com/create/vuepress/vuepress-boilerplate"
icon="ai ai-azion"
icon-pos="left"
/>

#### Vue3/Vite Boilerplate

The **Vue3/Vite Boilerplate** accelerates the deployment of an application based on these frameworks directly on the edge.

<LinkButton link="/en/documentation/products/guides/vue-vite-boilerplate/" label="go to the Vue3/Vite Boilerplate guide" severity="secondary" />
<LinkButton link="/en/documentation/products/guides/vue-vite-boilerplate/" label="go to the Vue3/Vite Boilerplate guide" severity="secondary" />

<LinkButton
label="Deploy"
link="https://console.azion.com/create/vitejs/vitejs-vue3-boilerplate"
icon="ai ai-azion"
icon-pos="left"
/>
/>

#### Webpage to PDF Resume

Expand Down
1 change: 1 addition & 0 deletions src/content/docs/pt-br/pages/guias/guides.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ permalink: /documentacao/produtos/guias/
- [Como criar edge applications com o React Boilerplate](/pt-br/documentacao/produtos/guias/react-boilerplate/)
- [Como criar edge applications com o Svelte Boilerplate](/pt-br/documentacao/produtos/guias/svelte-boilerplate/)
- [Como criar edge applications com o Vue Boilerplate](/pt-br/documentacao/produtos/guias/vue-boilerplate/)
- [Como criar edge applications com o VuePress Boilerplate](/pt-br/documentacao/produtos/guias/vuepress-boilerplate/)
- [Como criar edge applications com o Vue3/Vite Boilerplate](/pt-br/documentacao/produtos/guias/vue-vite-boilerplate/)
- [Como criar edge applications com o template Next.js App + Configurations](/pt-br/documentacao/produtos/guias/nextjs-app-configurations/)
- [Como criar edge applications com o template Next.js App + Middleware](/pt-br/documentacao/produtos/guias/nextjs-app-middleware/)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
---
title: Como implantar o VuePress Boilerplate
description: Este template implanta um repositório com um projeto baseado no VuePress.
meta_tags: guides, Azion Marketplace, web, VuePress
namespace: docs_guides_vuepress_boilerplate
permalink: /documentacao/produtos/guias/vuepress-boilerplate/
---

import Tag from 'primevue/tag';

<Tag severity="info" client:only="vue">
Preview
</Tag>

Com o **VuePress Boilerplate**, você pode iniciar um projeto usando [VuePress](https://vuepress.vuejs.org/guide/introduction.html) e implantá-lo no edge. O **VuePress** é um gerador de sites estáticos que permite que os desenvolvedores escrevam conteúdo como documentação e blogs em **Markdown**.

A implantação deste template cria um repositório no GitHub contendo seu projeto, bem como uma edge application e um domínio para facilitar seu acesso e gerenciamento através da Plataforma de Edge da Azion.

Este template utiliza a versão `2.0.0` do VuePress.

---

## Pré-requisitos

- Uma [conta GitHub](https://github.com/signup) para se conectar com a Azion e criar seu novo repositório.
- Cada push será implantado automaticamente nesse repositório para manter seu projeto atualizado.
- O template usa [Edge Functions](/pt-br/documentacao/produtos/build/edge-application/edge-functions/), [Application Accelerator](/pt-br/documentacao/produtos/build/edge-application/application-accelerator/), e [Edge Cache](/pt-br/documentacao/produtos/build/edge-application/edge-cache/). Isso pode gerar custos relacionados ao uso. Consulte a [página de preços](/pt-br/documentacao/produtos/precos/) para mais informações.

---

## Implante o template

Você pode obter e configurar seu template pelo Azion Console. Para implantá-lo facilmente no edge, clique no botão abaixo.

<LinkButton
label="Implantar"
link="https://console.azion.com/create/vuepress-boilerplate/"
icon="ai ai-azion"
icon-pos="left"
/>

---

## Configure o template

No formulário de configuração, você deve fornecer as informações para configurar sua aplicação. Preencha os campos apresentados.

Os campos identificados com um asterisco são obrigatórios.

1. Conecte a Azion com sua conta do GitHub.
- Uma janela pop-up será aberta para confirmar a instalação do [Azion GitHub App](/pt-br/documentacao/produtos/guias/azion-github-app/), uma ferramenta que conecta sua conta do GitHub com a plataforma da Azion.
- Defina suas permissões e acesso ao repositório como desejado.
2. Selecione o **Git Scope** com o qual trabalhar.
3. Defina um nome para sua edge application.
- O bucket para armazenamento e a edge function usarão o mesmo nome.
- Use um nome único e fácil de lembrar. Se o nome já tiver sido usado, a plataforma retornará uma mensagem de erro.
4. Clique no botão **Deploy** para iniciar o processo de implantação.

Durante a implantação, você poderá acompanhar o processo através de uma janela que mostra os logs. Quando estiver completo, a página mostra informações sobre a aplicação e algumas opções para continuar sua jornada.

:::note
O link para a edge application permite que você a veja no navegador. No entanto, leva um certo tempo para propagar e configurar a aplicação nas edge locations da Azion. Pode ser necessário esperar alguns minutos para que a URL seja ativada e para que a página da aplicação seja efetivamente exibida no navegador.
:::

---

## Gerencie o template

Considerando que essa configuração inicial pode não ser ótima para sua edge application específica, todas as configurações podem ser personalizadas a qualquer momento que você precisar, usando a plataforma da Azion.

Para gerenciar e editar as configurações da sua aplicação edge, siga esses passos:

1. [Acesse o Azion Console](https://console.azion.com).
2. No canto superior esquerdo, selecione **Products Menu**, o ícone de três linhas horizontais, > **Edge Application**.
- Você será redirecionado para a página **Edge Application**. Ela lista todas as edge application que você criou.
3. Encontre a edge application relacionada ao seu template e selecione-a.
- A lista está organizada alfabeticamente. Você também pode usar a **barra de busca** localizada no canto superior esquerdo da lista; atualmente, ela filtra apenas pelo campo **Application Name**.

Depois de selecionar a aplicação edge que você trabalhará, você será direcionado para uma página contendo todas as configurações que você pode configurar.

:::tip
Leia a documentação sobre [gerenciamento de edge application](/pt-br/documentacao/produtos/build/edge-application/primeiros-passos/) para mais detalhes.
:::

### Adicione um domínio personalizado

A edge application criada durante a implantação tem um domínio Azion atribuído para torná-la acessível através do navegador. O domínio tem o seguinte formato: `xxxxxxxxxx.map.azionedge.net/`. No entanto, você pode adicionar um domínio personalizado para que os usuários acessem sua edge application através dele.

import LinkButton from 'azion-webkit/linkbutton';

<LinkButton link="/pt-br/documentacao/produtos/guias/configurar-dominio/" label="Ir para o guia de configuração de domínio" severity="secondary" />
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,19 @@ O **Vue Boilerplate** da Azion fornece uma solução de automação para criar u
icon-pos="left"
/>

#### Vuepress Boilerplate

O Vuepress Boilerplate fornece uma solução para configurar rapidamente uma aplicação web estática usando o VuePress.

<LinkButton link="/pt-br/documentacao/produtos/guias/vuepress-boilerplate/" label="Consulte o guia do Vuepress Boilerplate" severity="secondary" />

<LinkButton
label="Deploy"
link="https://console.azion.com/create/vuepress/vuepress-boilerplate"
icon="ai ai-azion"
icon-pos="left"
/>

#### Vue3/Vite Boilerplate

O **Vue3/Vite Boilerplate** acelera a implantação de uma aplicação baseada nesses frameworks diretamente no edge.
Expand Down

0 comments on commit ef4a9e9

Please sign in to comment.