> ## Documentation Index
> Fetch the complete documentation index at: https://docs.requestly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Node.js

> Learn How to Set Up Requestly Interceptor Proxy in Your Node.js Application

## **Steps**

<Steps>
  <Step title="Open Connected Apps">
    Go to the **Requestly Interceptor desktop** **app** and click on the **Connect apps** button. A popup modal will appear.

    <img src="https://mintcdn.com/requestly/eSOeLVkmwVPWjPJw/images/nodejs/f2142bd3-5513-4e1b-b02b-46ab002c621c.png?fit=max&auto=format&n=eSOeLVkmwVPWjPJw&q=85&s=afce329eb2a6db51cb3df9b21abbce46" align="center" fullwidth="false" width="2400" height="1476" data-path="images/nodejs/f2142bd3-5513-4e1b-b02b-46ab002c621c.png" />
  </Step>

  <Step title="Locate Terminal Processes">
    In the popup modal, navigate to the **Terminal processes** section. Click on **Setup instruction** for Terminal.

    <img src="https://mintcdn.com/requestly/eSOeLVkmwVPWjPJw/images/nodejs/18a2d99e-dae8-40d2-9187-599d340df38f.png?fit=max&auto=format&n=eSOeLVkmwVPWjPJw&q=85&s=d763dbb3f9baf0f354737b077af7bbd6" align="center" fullwidth="false" width="2400" height="1476" data-path="images/nodejs/18a2d99e-dae8-40d2-9187-599d340df38f.png" />
  </Step>

  <Step title="Copy the Setup Command">
    You will see a command displayed in the setup instructions. Copy the command. It will look something like this:

    ```plaintext theme={null}
    <(curl -sS localhost:7040/tpsetup)
    ```

    > ***Note: This command might be different depending upon port availability. Checkout in Connected Apps > Terminal***

    <img src="https://mintcdn.com/requestly/eSOeLVkmwVPWjPJw/images/nodejs/8b924a6c-8033-40ec-beac-d0c8d8e8fd82.png?fit=max&auto=format&n=eSOeLVkmwVPWjPJw&q=85&s=b7c27d609de1fa209a274c1d34b57561" align="center" fullwidth="false" width="2400" height="1372" data-path="images/nodejs/8b924a6c-8033-40ec-beac-d0c8d8e8fd82.png" />
  </Step>

  <Step title="Run the Command in Terminal">
    Open the terminal where you will start your **Node.js server** and paste the copied command. Press **Enter** to execute it.

    If the command runs successfully, you should see a confirmation message in your terminal indicating that **interception is enabled**.

    <img src="https://mintcdn.com/requestly/eSOeLVkmwVPWjPJw/images/nodejs/121ab875-5215-4131-8b18-a9ef3a4bf482.png?fit=max&auto=format&n=eSOeLVkmwVPWjPJw&q=85&s=22be002dbdd4f4229d0ea17154c46558" align="center" fullwidth="false" width="2400" height="1550" data-path="images/nodejs/121ab875-5215-4131-8b18-a9ef3a4bf482.png" />
  </Step>
</Steps>

> ***https requests in axios might not show up properly in Network Traffic tab due to the way axios handles HTTPS requests. But the actual request will work properly in your code as expected.***
>
> ***Checkout*** [***Github Issue***](https://github.com/requestly/requestly/issues/301) ***for more explanation and quick hack on how to apply rules on these requests***

## **Testing Proxy**

1. Go to `Network Traffic` tab in Requestly Interceptor Desktop App.

2) Now Make a curl request to [**https://amiusing.requestly.io/**](https://amiusing.requestly.io/) using your terminal and look for that request in the **Network Traffic** tab.

<img src="https://mintcdn.com/requestly/eSOeLVkmwVPWjPJw/images/nodejs/0e02fa11-b4e6-41b9-b947-cc06b3499eac.png?fit=max&auto=format&n=eSOeLVkmwVPWjPJw&q=85&s=3cde9d7669aa94dcb72bb6ab15c26db7" align="center" fullwidth="false" width="2400" height="1488" data-path="images/nodejs/0e02fa11-b4e6-41b9-b947-cc06b3499eac.png" />
