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.
- Simple API
- Built-in extensions
- Easy to extend
- Fully compatible with Deno Deploy
- Compatible with
deno serve
// 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
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