Skip to main content

Posts

Showing posts with the label Linux

Getting started with Deno, Your first app Hello Deno.

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 | sh Set the path export DENO_INSTALL="/home/user/.deno" export PATH="$DENO_INSTALL/bin:$PATH" Once its done lets verify the installation. deno --version and 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.js Put the following content in the index.js console.log('Hello Deno'); Now we can run our program from terminal. deno run index.js You shou l d be able to get the following output Hello Deno Congrats. You have just completed your Hello World with Deno. We will create more real-life deno projects in the next article. ...