Skip to content

Commit 4f43d72

Browse files
authored
Merge pull request #2605 from ably/chat-getting-started-fix
Improve getting started project setup instructions
2 parents 2a69bbe + 7065538 commit 4f43d72

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

content/chat/getting-started/javascript.textile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,23 @@ ably apps switch
3838
ably auth keys switch
3939
```
4040

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

4443
```[sh]
45-
npm install ts-node
44+
npm init -y
4645
```
4746

48-
* 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:
47+
* Install "typescript":https://www.npmjs.com/package/typescript to compile TypeScript files.
48+
* Install "ts-node":https://www.npmjs.com/package/ts-node to execute TypeScript files directly.
4949

5050
```[sh]
51-
npm init -y
52-
tsc --init
51+
npm install @ably/chat typescript ts-node
52+
```
5353

54-
npm install @ably/chat
54+
* Create a default TypeScript configuration in your project
55+
56+
```[sh]
57+
npx tsc --init
5558
```
5659

5760
<aside data-type='note'>

0 commit comments

Comments
 (0)