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

From learning to earning

Jobs that call for the skills explored in this talk.

Nodejs Developer

Frontend Revolution
Hilversum, Netherlands

MongoDB
Node.js
Angular
Continuous Delivery
Continuous Integration
+1