Drash logo

A microframework for Deno based on HTTP resources and content negotiation.

// File: app.ts

import Drash from "https://deno.land/x/drash@v0.18.0/mod.ts";

class HomeResource extends Drash.Http.Resource {
  static paths = ["/"];
  public GET() {
    this.response.body = "Hello World!";
    return this.response;

let server = new Drash.Http.Server({
  address: "localhost:1337",
  response_output: "text/html",
  resources: [HomeResource]

$ deno --allow-net --allow-env app.ts

For a more complicated application, try out the Hello World tutorial series!


For full documentation, visit https://drash.io.


View repository on GitHub