Skip to content
This repository has been archived by the owner on Nov 23, 2022. It is now read-only.

Commit

Permalink
feat(docs): update intro
Browse files Browse the repository at this point in the history
  • Loading branch information
0x77dev committed Feb 3, 2022
1 parent 0fdd80e commit 1911e22
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/docs/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ Let's discover **DStack in less than 15 minutes**.
]}
/>

## Play with DStack in browser console

https://explorer.dstack.dev/

## Add DStack to your project

Using Yarn:
Expand Down Expand Up @@ -103,13 +107,10 @@ stack.pubsub.publish('topic', 'Hello, DStack!');
### Interact with Store

```javascript
const shard = await stack.store.set('hello', 'world');

// Set value
await shard.set('dstack');

// Get fresh value
await shard.get();
const shard = await Shard.new(stack, ShardKind.Object, {hello: 'world'})
await stack.store.set('hello', shard));

// Get value
const shard = await stack.store.get('hello');
```

0 comments on commit 1911e22

Please sign in to comment.