VelaVela
Recipes

Deno

Run a Vela application on Deno.

Vela applications run on Deno with no additional adapters required.

Setup

import { VelaFactory } from '@velajs/vela';
import { AppModule } from './app.module.ts';

const app = await VelaFactory.create(AppModule);

Deno.serve({ port: 3000 }, app.fetch);

Deno Configuration

Create a deno.json in your project root:

{
  "tasks": {
    "start": "deno run --allow-net src/main.ts"
  },
  "imports": {
    "@velajs/vela": "npm:@velajs/vela"
  }
}

Running

deno task start
Edit on GitHub

Last updated on

On this page