Jo Franchetti

Getting Started with Deno in Production

What if you could run Node.js apps without `node_modules`? Deno offers a secure, modern runtime with a complete, built-in toolchain for production development.

Getting Started with Deno in Production
#1about 2 minutes

What is Deno and why should you use it

Deno is a modern, secure JavaScript runtime built in Rust by the creator of Node.js.

#2about 3 minutes

Installing Deno and initializing a new project

Get started by installing the Deno runtime with a single command and scaffolding a new project using `deno init`.

#3about 2 minutes

Setting up the VS Code extension for Deno

Install the official Deno VS Code extension to enable the Language Server Protocol (LSP) for features like autocompletion and error highlighting.

#4about 2 minutes

Understanding the built-in testing framework

Deno includes a zero-configuration test runner and framework, allowing you to write and run tests with `deno test` out of the box.

#5about 1 minute

Leveraging the Deno Standard Library for common tasks

The Deno Standard Library provides a collection of high-quality, audited modules for common tasks, available on the JSR package registry.

#6about 2 minutes

Configuring projects with the `deno.json` file

Use the `deno.json` file to manage dependencies, define runnable tasks, and configure compiler options, similar to `package.json`.

#7about 4 minutes

Using Deno's built-in development tooling

Deno comes with an integrated TypeScript compiler, linter, and code formatter, eliminating the need for separate configuration and dependencies.

#8about 3 minutes

Working with the file system and HTTP servers

Use the Deno runtime API to perform tasks like reading and writing files or quickly spinning up an HTTP server with `Deno.serve`.

#9about 3 minutes

Using Web APIs and Node.js modules in Deno

Deno supports standard Web APIs like `fetch` out of the box and can import Node.js built-in modules using the `node:` specifier.

#10about 2 minutes

Understanding Deno's permission-based security model

Deno executes code in a secure sandbox by default, requiring explicit permission flags to access sensitive APIs like the file system or network.

#11about 5 minutes

How to run an existing Node.js project in Deno

Deno can run existing Node.js projects by using `deno install` to create a `node_modules` directory and then executing the project's start script.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles
DC
Daniel Cranney
What Developers Really Need to Create Great Code Demos
Every developer on earth has, at some point, had another developer to thank for a breakthrough, a success, an aha moment they wouldn’t have had without coming across that blog post, that open-source contribution, that reply on socials or that humble ...
What Developers Really Need to Create Great Code Demos
CH
Chris Heilmann
Dev Digest 136 - No JS(on) of mine
News and ArticlesDouglas Crockford is our featured video, so let's talk about evolving JavaScript and all things JSON. Judicious JSON explains all the weird things in it, you can learn why it can be incredibly slow, people wonder what even is a JSON ...
Dev Digest 136 - No JS(on) of mine
DK
Deni Khalikov
First Steps For Getting Into Tech
Being in tech is amazing. Why, you ask? Because of many reasons. Imagine you have a problem. Let’s say you would love to wake up early every morning, and have a routine accompany your mornings so you could be more productive and mindful. You can do t...
First Steps For Getting Into Tech
DC
Daniel Cranney
Dev Digest 159: AI Pipelines, 10x Faster TypeScript, How to Interview
Inside last week’s Dev Digest 159 . 🤖 How to use LLMs to help you write code ⚡ How much electricity does AI need? 🔒 Is your API secure? Learn all about hardening it… 🟦 TypeScript switches to go and gets 10 times faster 🖼️ An image cropper in your ap...
Dev Digest 159: AI Pipelines, 10x Faster TypeScript, How to Interview

From learning to earning

Jobs that call for the skills explored in this talk.