# 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 nameservice repository

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

cd nameservice

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 [`nameservice/insomnia/nameserivce-api.json`](https://insomnia.rest/run/?label=nameservice-api\&uri=https%3A%2F%2Fraw.githubusercontent.com%2Fprotokol%2Fnameservice%2Fdevelop%2Finsomnia%2Fnameservice-api.json)
{% endhint %}

![](https://1710125006-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5_sCsXzWPdZcDzdm5q%2F-MhDr1mtbOTRnfI3eh_w%2F-MhE-zxmuj3581n21wJU%2FScreenshot%202021-08-16%20at%2014.51.00.png?alt=media\&token=c78a7c68-f88a-4b1f-a267-98cdd680b184)
