> ## Documentation Index
> Fetch the complete documentation index at: https://docs.initia.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

The following examples in this section assume that you implement the guides on
each page as separate functions and files under a single project directory. To
set up your project, follow the steps below.

<Steps>
  <Step title="Create Directory">
    First, create a directory to store your project files.

    ```bash theme={null}
    mkdir initia-js-quickstart && cd initia-js-quickstart
    ```
  </Step>

  <Step title="Initialize Project">
    Next, initialize your project.

    ```bash theme={null}
    npm init && npm add -D typescript @types/node ts-node && npx tsc --init && mkdir src && echo 'async function example() { console.log("Running example!")}; example()' > src/quickstart.ts
    ```
  </Step>

  <Step title="Install InitiaJS">
    Install InitiaJS.

    ```bash theme={null}
    npm add @initia/initia.js
    ```
  </Step>

  <Step title="Test Installation">
    Once you have installed InitiaJS, test your installation. Replace the contents of `src/quickstart.ts` with the following code.

    ```ts theme={null}
    import { RESTClient, Coin } from '@initia/initia.js';

    const restClient = new RESTClient('https://rest.testnet.initia.xyz');

    (async () => { const chainId = await restClient.tendermint.chainId();
    console.log(chainId); })();

    ```

    Then, run the script.

    ```bash theme={null}
    npx ts-node src/quickstart.ts
    ```

    If you get `initiation-2` as the output, your installation was successful!
  </Step>
</Steps>
