Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Latest commit

History

History
74 lines (51 loc) 路 1.27 KB

README.md

File metadata and controls

74 lines (51 loc) 路 1.27 KB

Denorest

Denorest

Lightweight, Minimalist Framework For REST API 馃 馃殌

$ deno run --allow-net https://deno.land/x/denorest@v4.2/example/hello.ts
import {
  Req,
  Res,
  Router,
  WebApp,
} from "https://deno.land/x/denorest@v4.2/mod.ts";

const app = new WebApp();
const router = new Router();

router.get("/", (_req: Req, res: Res) => {
  res.reply = "Hello, Deno!";
});

app.set(router);
app.listen(8080);

Features

  • Robust routing
  • Focus on high performance
  • Content negotiation

Documentation

Website and Documentation

Philosophy

The Denorest philosophy is to provide small, robust tooling for HTTP servers, making it a great solution for HTTP APIs.

Examples

Example

import {
  Req,
  Res,
  Router,
  WebApp,
} from "https://deno.land/x/denorest@v4.2/mod.ts";

const app = new WebApp();
const router = new Router();

router.get("/", (_req: Req, res: Res) => {
  res.reply = "Hello, TypeScript!";
});

app.set(router);
app.listen(8080);

People

The original author of Denorest is Parthka

License

MIT