Skip to content

Pettirino1y/dencro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dencro

an adaptation of micro for deno

Except this one will serve any handlers it finds on the file system that mirror the request.

Usage

deno --allow-net --allow-read index.ts <directoryToServeFiles> [--port 8080]

Todo

  • Add command line argument parsing
    • So we can set the port
  • Load index.ts by default if no handler is given as an argument
  • Walk folders to load all .ts files as handlers
  • Set what folder to use as current working directory
  • Have handlers support returning:
    • JSON
    • Templates
  • Write tests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published