Build a Simple Rest API with Deno and Express

Build a Simple Rest API with Deno and Express

Deno logo

Features of Deno

  1. Secure by default. No file, network, or environment access, unless explicitly enabled.
  2. Supports TypeScript out of the box.
  3. Ships only a single executable file.
  4. Has built-in utilities like a dependency inspector (deno info) and a code formatter (deno fmt).
  5. Has a set of reviewed (audited) standard modules that are guaranteed to work with Deno: deno.land/std

Installing Deno

If you are using a Mac or Linux based system. Open your terminal and copy/paste the following command to install Deno.

curl -fsSL https://deno.land/x/install/install.sh | sh

deno --version

You should see the following response.

Welcome to Deno 🦕

  • --allow-hrtime: Allow high-resolution time measurement.
  • --allow-net: Allow network access.
  • --allow-plugin: Allow loading plugins.
  • --allow-read: Allow file system read access.
  • --allow-run: Allow running subprocesses.
  • --allow-write: Allow file system write access.
  • --allow-all:: Give all access.