# Setting up Self-Managed Connectors

## Overview

This tutorial will guide you through the process of running an example self managed connector end-to-end setup. Kindly complete the prerequisites before following this guide.

{% content-ref url="installing-prerequisites" %}
[installing-prerequisites](https://docs.farmstack.co/deploying-farmstack/installing-prerequisites)
{% endcontent-ref %}

## Setting up FarmStack connector

In the terminal window type the following command to run FarmStack setup:

```
python3 setup.py
```

After the setup is complete, in the browser window, open the installer frontend by typing <http://localhost:8000>.

## Running example connectors

Navigate to New Connector tab

Give the provider a unique name, for example, `Test Provider 1` and click `Next`

![](https://3091028396-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-McfeVjkkzf-uxnNfW6X%2F-Mfe4BAg4izTYElBhbi3%2F-MdE0U8Powj5I51pA8S6%2FScreenshot%202021-07-28%20043247.png?alt=media\&token=715fcdec-19b0-4ab5-922a-ab3ad034b21e)

Give the consumer a unique name, for example, `Test Consumer 1` and click `Next`

![](https://3091028396-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-McfeVjkkzf-uxnNfW6X%2F-Mfe4BAg4izTYElBhbi3%2F-MdE0cYXfh2YiCqoD3b-%2FScreenshot%202021-07-28%20043315.png?alt=media\&token=d17c3b1f-6ef0-440d-b573-e9518f431d7f)

Verify the details and start the connection by clicking `Set up Connection` button.

![](https://3091028396-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-McfeVjkkzf-uxnNfW6X%2F-Mfe4BAg4izTYElBhbi3%2F-MdE0hXnO_DARA4zOIWA%2FScreenshot%202021-07-28%20043348.png?alt=media\&token=7977e788-fa7a-45de-b7ff-f6a43790ecfc)

Depending on your system resources and internet speed this step could take anywhere from a few seconds to a few minutes. You can check the progress in the terminal window.

When the connector setup is complete, open the status tab and click `View transferred data` link to see your data.

![](https://3091028396-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-McfeVjkkzf-uxnNfW6X%2F-Mfe4BAg4izTYElBhbi3%2F-MfeDJJ0ovWp8YNG2GOj%2FScreenshot%202021-07-28%20043713.png?alt=media\&token=c7cbb23f-a7fc-44c2-b43c-edc37f64cd89)

Kindly wait a couple of minutes for the contract negotiation process of provider and consumer to complete before they can start sharing the data.&#x20;

After the negotiation, the provider will start streaming data to the consumer. Kindly refresh to see the data shared into the consumer application.

![](https://3091028396-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-McfeVjkkzf-uxnNfW6X%2F-Mfe4BAg4izTYElBhbi3%2F-MfeDWo5Mi2goltFVkM6%2FSnapshot%20-%201.png?alt=media\&token=d38ede01-839f-4ad6-aed7-b61ce502491f)

This completes the tutorial for Setting up a Managed connector with usage control example. If you face any issue while running the self managed connector, kindly open a new issue in the Github repository and our experts will guide you.
