Skip to content

VeryEasyFramework/easy-serve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyServe

EasyServe is used under the hood by EasyApp and handles the web server setup, configuration and core functionality.

It is designed as a standalone module that can be used as a web server for any Deno project.

Features

  • Simple API
  • Built-in extensions
  • Easy to extend
  • Fully compatible with Deno Deploy
  • Compatible with deno serve

Usage

Basic Usage

// main.ts
import EasyServe from "@vef/easy-serve";

const server = await EasyServe.create({
  extensions: [], // Add extensions here
});

server.run();

run the server using deno run:

deno run -A main.ts

With Deno Serve

EasyServer is also compatible with deno serve. This is useful when you want to use features like parallel processing.

// main.ts
import EasyServe from "@vef/easy-serve";

const server = await EasyServe.create({
  extensions: [], // Add extensions here
});

export default server;

Now you can run the server using deno serve:

deno serve --parallel main.ts

About

An easy to use and extensible web server for your Deno project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published