Let’s install Deno.
Deno ships as a single executable with no dependencies. You can install it using the installers below, or download a release binary from the releases page.
Installing deno in Linux:
curl -fsSL https://deno.land/x/install/install.sh | shSet the path
export DENO_INSTALL="/home/user/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"Once its done lets verify the installation.
deno --versionand you should be able to get the deno version. Congratulations, deno is installed.
Now as a tradition we will start with Hello Deno project. Create a folder called hello-deno.
mkdir hello-deno
cd hello-deno Create a file index.js
touch index.jsPut the following content in the index.js
console.log('Hello Deno');Now we can run our program from terminal.
deno run index.jsYou should be able to get the following output
Hello DenoCongrats. You have just completed your Hello World with Deno. We will create more real-life deno projects in the next article.
 
Comments
Post a Comment