title: How to make local .json file accessible from remote machine or folder?
body: <p>In my program I have .json file that is stored in my local folder. I also have Javascript code in the same folder that accessing this .json file and reads it's values. To access the file I am using:</p>
  <p><code>const data = require('../JS/countries.json');</code>.</p>
  <p>The program works perfectly on my local machine, and I have published it on github repository(<a href="https://github.com/TheRadioDept/technical-question" rel="nofollow noreferrer">https://github.com/TheRadioDept/technical-question</a>). However, after I tried cloning this repository into another folder, I faced an error:</p>
  <pre><code>code: 'MODULE_NOT_FOUND',
  requireStack: [ '/home/me/progs/clonedRepo/technical-question/main.js' ]
  </code></pre>
  <p><code>[ '/home/me/progs/clonedRepo/technical-question/main.js' ]</code> is the path to cloned repository, it is not original storage of .json file and javascript code.
  That means that code can only be executed on my local machine from the original folder where I store my JS and JSON files. Is there a way I can run this code and access it in another folder or computer?</p>