How can I run my node script using a shell script file
<p>I am creating a personal site using node. It is going to help me keep track of the ebooks that I am reading. </p>

<p>At the moment, I need to <code>cd</code> to the project folder and run <code>node server.js</code>. </p>

<p>I thought I'd create a shell script and then I'd just have to double click on the file. The file would have the following code:</p>

<pre><code>#!/usr/bin/env bash 
node server.js 
</code></pre>

<p>The first error I've got was that <code>server.js</code> is not found at the root directory, I fixed that by typing the full back, then it threw same error for all the dependencies in the application </p>

<p>(I have never used shell scripting)</p>

<p>Is what I am trying to do possible?</p>