> For the complete documentation index, see [llms.txt](https://docs.protokol.com/developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.protokol.com/developers/sdk/guardian/development.md).

# Development

### Prerequisites

* **Node version 12.x or 14.x**
* **yarn package manager**
* **docker and docker-compose**

{% hint style="info" %}
For more information about setting up development environment go to \
<https://ark.dev/docs/core/getting-started/development-setup/introduction>
{% endhint %}

### To run local development enviornment execute the following steps:

#### 1. Clone guardian repository

```bash
git clone https://github.com/protokol/guardian.git

cd guardian

yarn && yarn build
```

#### 2. Run Postgres database

```bash
cd docker/development/testnet

docker-compose up postgres
```

#### 3. Run local blockchain

***From repository root folder:***

```bash
yarn full:testnet
```

### Version Bumping

#### Prerelease

```bash
yarn version:beta
```

#### Patch

```bash
yarn version:patch
```

### Changelog

```bash
yarn changelog
```

### Insomnia

{% hint style="info" %}
Import insomnia file from [`guardian/insomnia/guardian-api.json`](https://insomnia.rest/run/?label=guardian-api\&uri=https%3A%2F%2Fraw.githubusercontent.com%2Fprotokol%2Fguardian%2Fdevelop%2Finsomnia%2Fguardian-api.json)
{% endhint %}

![](/files/-MkqHC41Xa5v3L-0Q5Eq)
