Skip to content

Commit

Permalink
docs: update installation
Browse files Browse the repository at this point in the history
  • Loading branch information
ryutamago committed Jan 24, 2025
1 parent 393431b commit 5a7906f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
8 changes: 7 additions & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ Ensure `docker` is installed on your system. If not, please follow [this guide](
To download and install `jstz`, run the following command in your terminal:

```sh
source <(curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/jstz-dev/jstz/main/scripts/install-jstz-cli.sh)
npm install -g 'https://gitpkg.vercel.app/jstz-dev/jstz/packages/cli/main?0.1.0'
```

or

```sh
yarn global add 'https://gitpkg.vercel.app/jstz-dev/jstz/packages/cli/main?0.1.0'
```

Congratulations! 🎉 `jstz` is now installed and configured on your system.
Expand Down
13 changes: 11 additions & 2 deletions docs/quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ npm install
jstz sandbox start
```

To run a containerized sandbox, make sure docker is installed in your system and run:

```sh
jstz sandbox --container start
```

Note: in case you get an error about the configuration file improperly configured, please clean up the `~/.jstz/` folder.

<details>
<summary>Output</summary>
<pre style="border: 1px solid #ccc; padding: 10px; border-radius: 4px; overflow-x: auto;">
Expand Down Expand Up @@ -220,7 +228,7 @@ Since this is your first deployment, you need to:
**(Only for non-Docker users)**

The `--detach` (`-d`) flag starts the sandbox in the background, allowing you to continue working in the same terminal.
The sandbox can be stopped or reset using `jstz sandbox stop` or `jstz sandbox restart`.
The sandbox can be stopped or reset using `jstz sandbox stop` or `jstz sandbox restart`. if you are running the sandbox in a container, use `jstz sandbox --container stop` or `jstz sandbox --container restart`.
:::

2. **Login / Signup**.
Expand All @@ -241,7 +249,8 @@ In the example above, the smart function was deployed to `KT19mYzcaYk55KttezwP4T
For the example smart function to send tez successfully, its account must have sufficient funds.
The [`jstz bridge deposit`](bridge.md) command is used to transfer funds from a Layer 1 address to a jstz account.

Within the sandbox environment, there are pre-funded L1 accounts `bootstrap1` through `bootstrap5` that you can use.
Within the sandbox environment, there are pre-funded
accounts `bootstrap1` through `bootstrap5` that you can use.

```sh
jstz bridge deposit --from bootstrap1 --to KT19mYzcaYk55KttezwP4TbMrGCDpVuPW3Jw --amount 10000000
Expand Down

0 comments on commit 5a7906f

Please sign in to comment.