Skip to content

Commit

Permalink
Update Getting Started.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lidangzzz committed Feb 17, 2024
1 parent 8b1ca88 commit 83c2c61
Showing 1 changed file with 49 additions and 1 deletion.
50 changes: 49 additions & 1 deletion darc-docs/docs/darc.js/Getting Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,4 +269,52 @@ const result = executeOperationList(
DARC_VERSION.Latest
);

```
```

### Development Notes:

To run the test for darcjs, you need to clone the darcjs repository from the GitHub, and then run the test with the following commands:

```shell
git clone https://github.com/Project-DARC/DARC.git
```

Then first install the dependencies for `darc-protocol` project

```shell
cd darc-protocol
npm install
```

And start a local devnet node with the following command:

```shell
npx hardhat node
```

Then run the test for `darc-protocol` project

```shell
npx hardhat test
```

Then switch to the `darcjs` project and install the dependencies for `darcjs` project

```shell
cd ../darcjs
pnpm install
```

And run the test for `darcjs` project

```shell
pnpm run test
```

Remember, you need to install `pnpm` before running the test for `darcjs` project, and you can install `pnpm` with the following command:

```shell
npm install -g pnpm
```

Also do not forget to initialize the `darc-protocol` project and start a local devnet node before running the test for `darcjs` project.

0 comments on commit 83c2c61

Please sign in to comment.