You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/view/src/content/en/getting-started.mdx
+6-25Lines changed: 6 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,37 +24,18 @@ Before you begin, make sure you have the following:
24
24
Once your environment is ready, follow these steps to create a new deco.chat project:
25
25
26
26
<StepGroup>
27
-
<Stepnumber={1}title="Install the Deco CLI">
27
+
<Stepnumber={1}title="Create a project">
28
28
Open your terminal and run:
29
29
30
30
```bash
31
-
npm i -g deco-cli
31
+
npm create deco@latest
32
32
```
33
33
34
-
This globally installs the deco command. After installation, you can run `deco --help` to verify it's working.
34
+
If you're not authenticated, this will your browser so you can log in or create an account,
35
+
then initialize a project for you.
35
36
</Step>
36
37
37
-
<Stepnumber={2}title="Log in to deco.chat">
38
-
Use `deco login` to authenticate the CLI with your deco.chat account:
39
-
40
-
```bash
41
-
deco login
42
-
```
43
-
44
-
A browser window will prompt you to sign in, and the CLI will store an API token for your session. (If you don't have an account, sign up on the deco.chat website first.)
45
-
</Step>
46
-
47
-
<Stepnumber={3}title="Initialize a new project">
48
-
Navigate to the directory where you want your project and run:
49
-
50
-
```bash
51
-
deco create
52
-
```
53
-
54
-
You'll be guided to pick a template (for example, a **React + Tailwind View** template or a minimal server-only template). The CLI will scaffold a project with the recommended structure. It will also prompt you to configure your workspace and app name (or you can run `deco configure` manually to set these).
55
-
</Step>
56
-
57
-
<Stepnumber={4}title="Install dependencies">
38
+
<Stepnumber={2}title="Install dependencies">
58
39
After scaffolding, `cd` into the project folder. If the project includes a frontend, run:
59
40
60
41
```bash
@@ -64,7 +45,7 @@ Once your environment is ready, follow these steps to create a new deco.chat pro
64
45
(or `pnpm install`) to install Node dependencies for the view.
65
46
</Step>
66
47
67
-
<Stepnumber={5}title="Run the development server">
48
+
<Stepnumber={3}title="Run the development server">
Copy file name to clipboardExpand all lines: docs/view/src/content/pt-br/getting-started.mdx
+6-22Lines changed: 6 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,47 +8,31 @@ icon: Play
8
8
9
9
Antes de começar, certifique-se de ter o seguinte:
10
10
11
-
-**Node.js** (v18+ recomendado) – necessário para executar o servidor de desenvolvimento frontend e empacotar assets.
12
-
13
-
-**deco.chat CLI** – a interface de linha de comando para deco.chat, que você pode instalar via NPM.
14
-
15
-
-**Conta Cloudflare** – necessária para implantar seu aplicativo (Cloudflare Workers é o runtime).
11
+
-**Node.js** (v22+ recomendado) – necessário para executar o servidor de desenvolvimento frontend e empacotar assets.
16
12
17
13
-**Conhecimento básico de TypeScript** – O projeto é pesado em TypeScript, então familiaridade com TS é importante (se você é novo, veja a documentação oficial do TypeScript para uma introdução).
18
14
19
-
## Configuração do Projeto com o CLI
20
-
21
15
Uma vez que seu ambiente esteja pronto, siga estes passos para criar um novo projeto deco.chat:
22
16
23
-
### 1. Instale o CLI Deco
17
+
### 1. Inicialize um novo projeto
24
18
25
19
Abra seu terminal e execute:
26
20
27
21
```shell
28
-
npm i -g deco-cli
22
+
npm create deco@latest
29
23
```
30
24
31
25
ou
32
26
33
27
```shell
34
-
bun i -g deco-cli
28
+
bun create deco@latest
35
29
```
36
30
37
-
Isso instala globalmente o comando deco. Após a instalação, você pode executar `deco --help` para verificar se está funcionando.
38
-
39
-
### 2. Faça login no deco.chat
40
-
41
-
Use `deco login` para autenticar o CLI com sua conta deco.chat. Uma janela do navegador solicitará que você faça login, e o CLI armazenará um token de API para sua sessão. (Se você não tem uma conta, cadastre-se primeiro no site deco.chat.)
42
-
43
-
### 3. Inicialize um novo projeto
44
-
45
-
Navegue até o diretório onde você quer seu projeto e execute `deco init`. Você será guiado para escolher um template (por exemplo, um template **React + Tailwind View** ou um template minimalista apenas para servidor). O CLI irá estruturar um projeto com a estrutura recomendada. Ele também solicitará que você configure seu workspace e nome do aplicativo (ou você pode executar `deco configure` manualmente para definir estes).
46
-
47
-
### 4. Instale dependências
31
+
### 2. Instale dependências
48
32
49
33
Após a estruturação, `cd` para a pasta do projeto. Se o projeto incluir um frontend, execute `npm install` (ou `pnpm install`) para instalar dependências Node para a visualização.
0 commit comments