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

Lightweight, Minimalist Framework For REST API ๐Ÿฆ• ๐Ÿš€

License

Notifications You must be signed in to change notification settings

p4rthk4/denorest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Denorest

Denorest

Lightweight, Minimalist Framework For REST API ๐Ÿฆ• ๐Ÿš€

$ deno run https://raw.githubusercontent.com/slectgit/denorest/v3.0/example/hello.ts
import {
  Req,
  Res,
  Router,
  WebApp,
} from "https://deno.land/x/denorest@v3.0/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

  • Support Javascript and TypeScript
  • 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

TypeScript Example

import {
  Req,
  Res,
  Router,
  WebApp,
} from "https://deno.land/x/denorest@v3.0/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);

JavaScript Example

import { Router, WebApp } from "https://deno.land/x/denorest@v3.0/mod.js";

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

router.get("/", (_req, res) => {
  res.reply = "Hello, JavaScript!";
});

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

People

The original author of Denorest is Parthka

License

MIT