Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions content/chat/getting-started/javascript.textile
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,23 @@ ably apps switch
ably auth keys switch
```

* Install "Node.js":https://nodejs.org/en version 18 or greater.
* Install "ts-node":https://www.npmjs.com/package/ts-node to execute TypeScript files:
* Install any current LTS version of "Node.js":https://nodejs.org/en and create a new project:

```[sh]
npm install ts-node
npm init -y
```

* Create a new project in your IDE and install the Ably Chat JavaScript SDK. This will also install the Ably Pub/Sub SDK as it is a dependency:
* Install "typescript":https://www.npmjs.com/package/typescript to compile TypeScript files.
* Install "ts-node":https://www.npmjs.com/package/ts-node to execute TypeScript files directly.

```[sh]
npm init -y
tsc --init
npm install @ably/chat typescript ts-node
```

npm install @ably/chat
* Create a default TypeScript configuration in your project

```[sh]
npx tsc --init
```

<aside data-type='note'>
Expand Down