Skip to main content
Module

x/fastro/examples/readme.md

Fast and simple web application framework for deno
Go to Latest
File

Examples

Quick Start

import { Fastro } from "https://deno.land/x/fastro/mod.ts";

const server = new Fastro();

server.get("/", (req) => req.send("root"));

await server.listen();

You can see above basic example code here: hello.ts

Check the following codes to find out how to:

Middleware

You can add new properties or functions to the default request. This feature is similar to the express middleware.

Check the following codes to find out how to:

Decorator

You can add new properties or functions to Fastro instance. This is similar to the fastify decorator. Check the following codes to find out how to: create a new server property.

Plugin

You can add new properties or functions to fastro instance. This is similar to the fastify plugin. Check the following codes to find out how to: create & register a plugin.