Skip to content

Commit

Permalink
Update Installing.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi authored May 28, 2024
1 parent dc08a86 commit c21688c
Showing 1 changed file with 2 additions and 69 deletions.
71 changes: 2 additions & 69 deletions Introduction/Installing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,76 +8,9 @@ This chapter introduces how to set up the Yao development and debugging environm

## Install

<Tabs defaultActiveKey='1'>
<TabPane tab='Linux & MacOS' key='1'>
Latest Version download and installation:

Run the script in the terminal:

```bash
curl -fsSL https://website.yaoapps.com/install.sh | bash
```

</TabPane>

<TabPane tab='Windows' key='2'>

1. Install Docker [download and install Docker](https://docs.docker.com/desktop/windows/install/)

2. Create and start the container: `docker run -d --name yao -v <project root>:/data/app -p 5099:5099 yaoapp/yao:0.10.1-amd64-dev`

Into the container:

```bash
docker exec -it yao /bin/bash
```

Use the yao command inside the container

```bash
yao version
```

**Yao Docker Images**

| Image | Environment | Usage Scenario |
| --------------------------- | ----------------------- | -------------------------------------------------------------------------- |
| yaoapp/yao:0.10.1-amd64-dev | Development Environment | `amd64` for MacOS Intel, Windows X86 64-bit, Linux 64-bit |
| yaoapp/yao:0.10.1-arm64-dev | Development Environment | `arm64` is suitable for MacOS M1, Raspberry Pi, RK development board, etc. |
| yaoapp/yao:0.10.1-amd64 | Production environment | Suitable for cloud deployment |
| yaoapp/yao:0.10.1-arm64 | Production | Suitable for IoT edge device deployment |

</TabPane>

<TabPane tab='Docker (recommended)' key='3'>

1. Install Docker [download and install Docker](https://docs.docker.com/get-docker/)

2. Create and start the container: `docker run -d --name yao -v <project root>:/data/app -p 5099:5099 yaoapp/yao:0.10.1-amd64-dev`

Into the container:

```bash
docker exec -it yao /bin/bash
```

Use the yao command inside the container

```bash
yao version
```

**Yao Docker Images**

| Image | Environment | Usage Scenario |
| --------------------------- | ----------------------- | -------------------------------------------------------------------------- |
| yaoapp/yao:0.10.1-amd64-dev | Development Environment | `amd64` for MacOS Intel, Windows X86 64-bit, Linux 64-bit |
| yaoapp/yao:0.10.1-arm64-dev | Development Environment | `arm64` is suitable for MacOS M1, Raspberry Pi, RK development board, etc. |
| yaoapp/yao:0.10.1-amd64 | Production environment | Suitable for cloud deployment |
| yaoapp/yao:0.10.1-arm64 | Production | Suitable for IoT edge device deployment |

</TabPane>

</Tabs>
https://github.com/YaoApp/xgen-dev-app/blob/main/README.md

<Notice type="success">
Yao uses Sqlite to store data by default, if you need to use MySQL and
Expand Down

0 comments on commit c21688c

Please sign in to comment.