# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.protokol.com/developers/sdk/guardian/development.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
