Skip to content
Merged
30 changes: 15 additions & 15 deletions examples/ai-transport-message-per-response/javascript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,35 @@ Find out more about [AI Transport](/docs/ai-transport) and [message appending](/

1. Clone the [Ably docs](https://github.com/ably/docs) repository where this example can be found:

```sh
git clone git@github.com:ably/docs.git
```
```sh
git clone git@github.com:ably/docs.git
```

2. Change directory:

```sh
cd examples/
```
```sh
cd examples/
```

3. Rename the environment file:

```sh
mv .env.example .env.local
```
```sh
mv .env.example .env.local
```

4. In `.env.local` update the value of `VITE_ABLY_KEY` to be your Ably API key.

5. Install dependencies:

```sh
yarn install
```
```sh
yarn install
```

6. Run the server:

```sh
yarn run ai-transport-message-per-response-javascript
```
```sh
yarn run ai-transport-message-per-response-javascript
```

7. Try it out by opening [http://localhost:5173/](http://localhost:5173/) with your browser and selecting a prompt to see realtime AI token streaming.

Expand Down
30 changes: 15 additions & 15 deletions examples/ai-transport-message-per-response/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,35 @@ Find out more about [AI Transport](/docs/ai-transport) and [message-per-response

1. Clone the [Ably docs](https://github.com/ably/docs) repository where this example can be found:

```sh
git clone git@github.com:ably/docs.git
```
```sh
git clone git@github.com:ably/docs.git
```

2. Change directory:

```sh
cd examples/
```
```sh
cd examples/
```

3. Rename the environment file:

```sh
mv .env.example .env.local
```
```sh
mv .env.example .env.local
```

4. In `.env.local` update the value of `VITE_ABLY_KEY` to be your Ably API key.

5. Install dependencies:

```sh
yarn install
```
```sh
yarn install
```

6. Run the server:

```sh
yarn run ai-transport-message-per-response-react
```
```sh
yarn run ai-transport-message-per-response-react
```

7. Try it out by opening [http://localhost:5173/](http://localhost:5173/) with your browser and selecting a prompt to see realtime AI token streaming.

Expand Down
30 changes: 15 additions & 15 deletions examples/ai-transport-message-per-token/javascript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,35 @@ Find out more about [AI Transport](/docs/ai-transport), [token streaming](/docs/

1. Clone the [Ably docs](https://github.com/ably/docs) repository where this example can be found:

```sh
git clone git@github.com:ably/docs.git
```
```sh
git clone git@github.com:ably/docs.git
```

2. Change directory:

```sh
cd examples/
```
```sh
cd examples/
```

3. Rename the environment file:

```sh
mv .env.example .env.local
```
```sh
mv .env.example .env.local
```

4. In `.env.local` update the value of `VITE_ABLY_KEY` to be your Ably API key.

5. Install dependencies:

```sh
yarn install
```
```sh
yarn install
```

6. Run the server:

```sh
yarn run ai-transport-message-per-token-javascript
```
```sh
yarn run ai-transport-message-per-token-javascript
```

7. Try it out by opening [http://localhost:5173/](http://localhost:5173/) with your browser and selecting a prompt to see realtime AI token streaming.

Expand Down
30 changes: 15 additions & 15 deletions examples/ai-transport-message-per-token/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,35 @@ Find out more about [AI Transport](/docs/ai-transport) and [message history](/do

1. Clone the [Ably docs](https://github.com/ably/docs) repository where this example can be found:

```sh
git clone git@github.com:ably/docs.git
```
```sh
git clone git@github.com:ably/docs.git
```

2. Change directory:

```sh
cd examples/
```
```sh
cd examples/
```

3. Rename the environment file:

```sh
mv .env.example .env.local
```
```sh
mv .env.example .env.local
```

4. In `.env.local` update the value of `VITE_ABLY_KEY` to be your Ably API key.

5. Install dependencies:

```sh
yarn install
```
```sh
yarn install
```

6. Run the server:

```sh
yarn run ai-transport-message-per-token-react
```
```sh
yarn run ai-transport-message-per-token-react
```

7. Try it out by opening [http://localhost:5173/](http://localhost:5173/) with your browser and selecting a prompt to see realtime AI token streaming.

Expand Down
48 changes: 24 additions & 24 deletions examples/auth-generate-jwt/javascript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,53 +20,53 @@ Find out more about [authentication](https://ably.com/docs/auth/token?lang=javas

1. Clone the [Ably docs](https://github.com/ably/docs) repository where this example can be found:

```sh
git clone git@github.com:ably/docs.git
```
```sh
git clone git@github.com:ably/docs.git
```

2. Change directory:

```sh
cd examples/
```
```sh
cd examples/
```

3. Install dependencies:

```sh
yarn install
```
```sh
yarn install
```

4. Run the frontend client:

```sh
yarn run auth-generate-jwt-javascript
```
```sh
yarn run auth-generate-jwt-javascript
```

5. In a new tab, change directory:

```sh
cd examples/
```
```sh
cd examples/
```

6. Rename the environment file:

```sh
mv .env.example .env.local
```
```sh
mv .env.example .env.local
```

7. In `.env.local` update the value of `VITE_ABLY_KEY` to be your Ably API key.

8. Install dependencies:

```sh
yarn install
```
```sh
yarn install
```

9. Run the backend server:

```sh
yarn run auth-generate-jwt-server
```
```sh
yarn run auth-generate-jwt-server
```

10. Try it out by opening a tab to [http://localhost:5173/](http://localhost:5173/) with your browser to see the result.

Expand Down
48 changes: 24 additions & 24 deletions examples/auth-generate-jwt/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,53 +20,53 @@ Find out more about [authentication](https://ably.com/docs/auth/token?lang=javas

1. Clone the [Ably docs](https://github.com/ably/docs) repository where this example can be found:

```sh
git clone git@github.com:ably/docs.git
```
```sh
git clone git@github.com:ably/docs.git
```

2. Change directory:

```sh
cd examples/
```
```sh
cd examples/
```

3. Install dependencies:

```sh
yarn install
```
```sh
yarn install
```

4. Run the frontend client:

```sh
yarn run auth-generate-jwt-react
```
```sh
yarn run auth-generate-jwt-react
```

5. In a new tab, change directory:

```sh
cd examples/
```
```sh
cd examples/
```

6. Rename the environment file:

```sh
mv .env.example .env.local
```
```sh
mv .env.example .env.local
```

7. In `.env.local` update the value of `VITE_ABLY_KEY` to be your Ably API key.

8. Install dependencies:

```sh
yarn install
```
```sh
yarn install
```

9. Run the backend server:

```sh
yarn run auth-generate-jwt-server
```
```sh
yarn run auth-generate-jwt-server
```

10. Try it out by opening a tab to [http://localhost:3000/](http://localhost:3000/) with your browser to see the result.

Expand Down
Loading
Loading