3.0
a lightweight simple webserver made with deno js
Repository
Current version released
3 years ago
install deno
start
create a file webserver.js and import the module
import {O_webserver} from "https://deno.land/x/o_webserver@0.4/O_webserver.module.js"
var o_webserver = new O_webserver();
await o_webserver.f_serve_all();
create a folder mkdir localhost
and create a testfile
mkdir localhost
echo "test hurray" > ./localhost/test.txtvisit the page
https://localhost/test.txtstart the webserver in background
install pm2
sudo apt install pm2start in background
pm2 start webserver.js --interpreter="deno" --interpreter-args="run --allow-net" show running
pm2 status