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

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

cd voting

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

![](https://1710125006-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5_sCsXzWPdZcDzdm5q%2F-Mkkb9J4_5pz-mGcY3Be%2F-Mkkbw27XR9d6t7LbETZ%2FScreenshot%202021-09-29%20at%2010.15.45.png?alt=media\&token=c683724c-0de5-423e-b2f4-c3bd4346f35a)
