# How to install

1. First of all clone latest idena-rpc version.

```bash
git clone https://github.com/idena-dev/idena-rpc.git
```

2\. Then rename `config/.production.js` in `config/production.js`:

```bash
mv config/.production.js config/production.js
```

3\. Edit your production.js file:

* **target**: Address of an up and running [idena-go](https://github.com/idena-network/idena-go) node.
* **apiKey**: Your idena-go api key. It can be retrieved in `less datadir/api.key`
* **port**: Port that will expose your public RPC.

```bash
module.exports = {
    target: "http://localhost:9009",
    apiKey: "<insert content of datadir/api.key file>",
    port: 80,
};
```

4\. Start to proxy:

```bash
npm start
```
