Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hswolff/dencro
https://github.com/hswolff/dencro
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hswolff/dencro
- Owner: hswolff
- Created: 2020-02-24T01:55:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-21T10:04:41.000Z (over 4 years ago)
- Last Synced: 2024-04-15T03:04:16.146Z (7 months ago)
- Language: TypeScript
- Size: 17.6 KB
- Stars: 18
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dencro
an adaptation of [micro](https://github.com/zeit/micro) for [deno](https://deno.land/)
Except this one will serve any handlers it finds on the file system that mirror the request.
## Usage
```sh
deno --allow-net --allow-read index.ts [--port 8080]
```## Todo
- [x] Add [command line argument parsing](https://deno.land/std/flags/)
- So we can set the port
- [x] Load `index.ts` by default if no handler is given as an argument
- [x] Walk folders to load all `.ts` files as handlers
- [x] Set what folder to use as current working directory
- [ ] Have handlers support returning:
- [ ] JSON
- [ ] Templates
- [ ] Write tests