Access Local File System from Remix IDE

Access Local File System from Remix IDE

Remix is one of the IDE that is used to develop, compile, deploy and test smart contracts. Remix can be used by two ways, one is browser based and other is IDE. In previous post, I already shown how to install IDE and use that, in case you missed that post, click on this link to go over that post.

Go over the below Video to see the steps for Linux operating system.

When you use browser based IDE, below are the main challenge faced by developer

  • Storage of the solidity smart contract files.
  • Loss of code in case browser stopped working and you need to start it again

Remix does provide solution to these challenges as well by providing the option to connect to your local file system from Remix browser based IDE so that all solidity smart contracts get stored in your local file system.

In case you are not aware how to enable access of local file system from remix IDE, this is the post for you. Let's see how to do this.

Step 1: Install RemixD: To access your local file systems from remix IDE, you need to install RemixD that enable the connection between your local file system and Remix IDE. To Install RemixD, open the command prompt and run below command.

npm install -g remixd

Access Local File System from Remix using remixD

Step 2: Start the RemixD and share folder: Once RemixD is installed, next step is to start it and enable access to local shared folder. For that, run below command.

remixd -s <absolute path to shared folder>

Access Local File System from Remix using remixD Start RemixD

Step 3: Enable connection from Remix: Once RemixD is installed, next step is to enable the connection to local file system from Remix, for that go to Remix browser IDE and click on "localhost connection" icon shown in below screen shot.

Access Local File System from Remix using remixD Make Connection

It open up new pop-up where you can find all the details, you just need to click on "Connect" button to confirm the connection.

Access Local File System from Remix using remixD Make Connection Confirm

Once connection is made, "localhost connection" become green and localhost folder gets added in file explorer.

Access Local File System from Remix using remixD Complete






Comments ( 2 )

  • Jeeradate Kaowkanchana

    I try to install Remixd as your advice, I use powersheel with admin but there are the following, I am not good in this area, would you please be so kind and suggest? 8 Nov 2018

    PS C:\WINDOWS\system32> npm install -g remixd
    npm : npm WARN deprecated fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support
    At line:1 char:1
    + npm install -g remixd
    + ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (npm WARN deprec…Promise Support:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

    WARN deprecated tar.gz@1.0.7: โš๏ธ WARNING โš๏ธ tar.gz module has been deprecated and your application is vulnerable. Please use
    tar module instead:
    ERR! code ENOGIT
    Error while executing:
    undefined ls-remote -h -t git://
    npm ERR!

    npm ERR!
    No git binary found in $PATH


    npm ERR! Failed using git.

    Please check if you have git installed and in your PATH.
    A complete log of this run can be found in:
    npm ERR!

    PS C:\WINDOWS\system32>

    • Please confirm if you have git installed in your system, if not please install it and try again.

Post a Reply

Inquire Now
close slider